Added the "canReorder" computed property for the TodoGroup enumeration in the app target.

This commit is contained in:
2026-02-11 14:37:23 +01:00
parent 91edf100d4
commit 9c68c5be32
2 changed files with 28 additions and 14 deletions
@@ -28,6 +28,25 @@ struct TodoGroupTests {
#expect(canShowCompleted == expectation)
}
@Test(
"canReorder returns correct values",
arguments: zip(
TodoGroup.allCases,
[true, true, true, false]
)
)
func canReorder(
for group: TodoGroup,
expects expectation: Bool
) {
// GIVEN
// WHEN
let canReorder = group.canReorder
// THEN
#expect(canReorder == expectation)
}
@Test(
"group color match expected values",
arguments: zip(