diff options
| author | Ben Sima <ben@bsima.me> | 2025-11-20 18:07:12 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-11-20 18:07:12 -0500 |
| commit | 028bbda4282515b95a7555209d397aaf22d32244 (patch) | |
| tree | 38c5527a546dcb1f877f3380f615ae4497faf50f /Omni/Task.hs | |
| parent | 6e90d59acf45cc481e4e78101a36231af43cbd96 (diff) | |
feat: implement t-PpYZt2
Diffstat (limited to 'Omni/Task.hs')
| -rw-r--r-- | Omni/Task.hs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Omni/Task.hs b/Omni/Task.hs index d1e672a..10136c9 100644 --- a/Omni/Task.hs +++ b/Omni/Task.hs @@ -312,7 +312,13 @@ unitTests = ready <- getReadyTasks -- Both should be ready since Related doesn't block (taskId task1 `elem` map taskId ready) Test.@?= True - (taskId task2 `elem` map taskId ready) Test.@?= True + (taskId task2 `elem` map taskId ready) Test.@?= True, + Test.unit "child task gets sequential ID" <| do + parent <- createTask "Parent" Epic Nothing Nothing P2 [] + child1 <- createTask "Child 1" WorkTask (Just (taskId parent)) Nothing P2 [] + child2 <- createTask "Child 2" WorkTask (Just (taskId parent)) Nothing P2 [] + taskId child1 Test.@?= taskId parent <> ".1" + taskId child2 Test.@?= taskId parent <> ".2" ] -- | Test CLI argument parsing to ensure docopt string matches actual usage |
