Added the "canReorder" computed property for the TodoGroup enumeration in the app target.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user