We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5b33fd commit 170c2c3Copy full SHA for 170c2c3
test/unit/test_model.ml
@@ -1,6 +1,12 @@
1
open OUnit2
2
open Smtml
3
4
+let assert_equal =
5
+ let pp_diff fmt (expected, real) =
6
+ Fmt.pf fmt "Expected: %[email protected]: %s@." expected real
7
+ in
8
+ assert_equal ~cmp:String.equal ~pp_diff
9
+
10
let test_to_json _ =
11
let x = Symbol.make Ty_int "x" in
12
let y = Symbol.make Ty_real "y" in
@@ -9,10 +15,10 @@ let test_to_json _ =
15
let expected =
16
{|{
17
"model": {
18
+ "x": { "ty": "int", "value": 1 },
19
"u": { "ty": "str", "value": "abc" },
13
- "z": { "ty": "bool", "value": true },
14
20
"y": { "ty": "real", "value": 2.0 },
- "x": { "ty": "int", "value": 1 }
21
+ "z": { "ty": "bool", "value": true }
22
}
23
}|}
24
in
0 commit comments