Skip to content

Commit

Permalink
Merge pull request #456 from tijlleenders/tijl/-/add-back-not-on-test
Browse files Browse the repository at this point in the history
Tijl/-/add-back-not-on-test
  • Loading branch information
tijlleenders authored Mar 24, 2024
2 parents fc1bacb + ec9f89b commit 99071e2
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tests/jsons/stable/not-on/expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"scheduled": [
{
"day": "2022-01-01",
"tasks": [
{
"taskid": 0,
"goalid": "free",
"title": "free",
"duration": 11,
"start": "2022-01-01T00:00:00",
"deadline": "2022-01-01T11:00:00"
},
{
"taskid": 1,
"goalid": "1",
"title": "shopping",
"duration": 1,
"start": "2022-01-01T11:00:00",
"deadline": "2022-01-01T12:00:00"
},
{
"taskid": 2,
"goalid": "free",
"title": "free",
"duration": 12,
"start": "2022-01-01T12:00:00",
"deadline": "2022-01-02T00:00:00"
}
]
}
],
"impossible": []
}
19 changes: 19 additions & 0 deletions tests/jsons/stable/not-on/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"startDate": "2022-01-01T00:00:00",
"endDate": "2022-01-02T00:00:00",
"goals": [
{
"id": "1",
"title": "shopping",
"minDuration": 1,
"start": "2022-01-01T10:00:00",
"deadline": "2022-01-01T13:00:00",
"notOn": [
{
"start": "2022-01-01T00:00:00",
"end": "2022-01-01T11:00:00"
}
]
}
]
}
34 changes: 34 additions & 0 deletions tests/jsons/stable/not-on/observed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"scheduled": [
{
"day": "2022-01-01",
"tasks": [
{
"taskid": 0,
"goalid": "free",
"title": "free",
"duration": 11,
"start": "2022-01-01T00:00:00",
"deadline": "2022-01-01T11:00:00"
},
{
"taskid": 1,
"goalid": "1",
"title": "shopping",
"duration": 1,
"start": "2022-01-01T11:00:00",
"deadline": "2022-01-01T12:00:00"
},
{
"taskid": 2,
"goalid": "free",
"title": "free",
"duration": 12,
"start": "2022-01-01T12:00:00",
"deadline": "2022-01-02T00:00:00"
}
]
}
],
"impossible": []
}

0 comments on commit 99071e2

Please sign in to comment.