Skip to content

Commit

Permalink
Add tests for JOS3 setters
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanocokoljic committed Feb 2, 2024
1 parent b62a316 commit 4e51cf5
Show file tree
Hide file tree
Showing 2 changed files with 427 additions and 13 deletions.
395 changes: 395 additions & 0 deletions tests/models/1_run_setters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,395 @@
[
{
"property": "tdb",
"operations": [
{
"next": 30,
"expected": [
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0
]
}
]
},
{
"property": "tr",
"operations": [
{
"next": 30,
"expected": [
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0
]
}
]
},
{
"property": "to",
"operations": [
{
"next": 30,
"expected": [
30.0,
30.0,
30.0,
30.0,
29.999999999999996,
30.0,
30.0,
30.0,
30.0,
30.0,
30.0,
30.000000000000004,
29.999999999999996,
30.000000000000004,
30.000000000000004,
29.999999999999996,
30.000000000000004
]
}
]
},
{
"property": "rh",
"operations": [
{
"next": 55,
"expected": [
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0,
55.0
]
}
]
},
{
"property": "v",
"operations": [
{
"next": 0.2,
"expected": [
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
]
}
]
},
{
"property": "posture",
"operations": [
{
"next": 0,
"expected": "standing"
},
{
"next": 1,
"expected": "sitting"
},
{
"next": 2,
"expected": "lying"
},
{
"next": "standing",
"expected": "standing"
},
{
"next": "sitting",
"expected": "sitting"
},
{
"next": "sedentary",
"expected": "sitting"
},
{
"next": "lying",
"expected": "lying"
},
{
"next": "supine",
"expected": "lying"
},
{
"next": "invalid",
"expected": "standing"
}
]
},
{
"property": "clo",
"operations": [
{
"next": 1,
"expected": [
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0
]
}
]
},
{
"property": "par",
"operations": [
{
"next": 2,
"expected": 2
}
]
},
{
"property": "body_temp",
"operations": [
{
"next":[
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0
],
"expected": [
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0,
39.0
]
}
]
}
]
Loading

0 comments on commit 4e51cf5

Please sign in to comment.