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

This commit is contained in:
javier committed 2026-02-11 14:37:23 +01:00
1 parent 91edf100d4
commit 9c68c5be32
2 files changed
+28 -14

No files matched your search

@@ -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(