-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathfetish.json
More file actions
29 lines (27 loc) · 911 Bytes
/
Copy pathfetish.json
File metadata and controls
29 lines (27 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"name": "assertiveness",
"description": "Runtime assertions - intended for unit testing",
"operators": [
{
"name": "assert dominance over",
"description": "Assert that the RHO is greater than the LHO",
"grammars": ["have"],
"examples": ["Have Alice assert dominance over Bob"],
"code":
{
"fraction/fraction": "fetlang_assert(compare_fractions(RHO, LHO) == 1, \"assertion of dominance failed\");"
}
},
{
"name": "assert equality with",
"description": "Assert that the LHO and RHO are equal",
"grammars": ["have"],
"examples": ["Have Alice assert equality with Eve"],
"code":
{
"fraction/fraction":"fetlang_assert(!compare_fractions(RHO, LHO), \"assertion of equality between fractions failed\");",
"chain/chain":"fetlang_assert(!compare_chains(RHO, LHO), \"assertion of equality between chains failed\");"
}
}
]
}