|
2 | 2 |
|
3 | 3 | var Mt = require("./mt.js");
|
4 | 4 | var Block = require("../../lib/js/block.js");
|
| 5 | +var Belt_Float = require("../../lib/js/belt_Float.js"); |
5 | 6 |
|
6 | 7 | var suites = /* record */[/* contents : [] */0];
|
7 | 8 |
|
@@ -52,33 +53,35 @@ eq("File \"bs_float_test.ml\", line 22, characters 5-12", -1, -1);
|
52 | 53 |
|
53 | 54 | eq("File \"bs_float_test.ml\", line 23, characters 5-12", -1, -1);
|
54 | 55 |
|
55 |
| -eq("File \"bs_float_test.ml\", line 26, characters 5-12", parseFloat("1"), 1.0); |
| 56 | +eq("File \"bs_float_test.ml\", line 26, characters 5-12", Belt_Float.fromString("1"), 1.0); |
56 | 57 |
|
57 |
| -eq("File \"bs_float_test.ml\", line 27, characters 5-12", parseFloat("-1"), -1.0); |
| 58 | +eq("File \"bs_float_test.ml\", line 27, characters 5-12", Belt_Float.fromString("-1"), -1.0); |
58 | 59 |
|
59 |
| -eq("File \"bs_float_test.ml\", line 28, characters 5-12", parseFloat("1.7"), 1.7); |
| 60 | +eq("File \"bs_float_test.ml\", line 28, characters 5-12", Belt_Float.fromString("1.7"), 1.7); |
60 | 61 |
|
61 |
| -eq("File \"bs_float_test.ml\", line 29, characters 5-12", parseFloat("-1.0"), -1.0); |
| 62 | +eq("File \"bs_float_test.ml\", line 29, characters 5-12", Belt_Float.fromString("-1.0"), -1.0); |
62 | 63 |
|
63 |
| -eq("File \"bs_float_test.ml\", line 30, characters 5-12", parseFloat("-1.5"), -1.5); |
| 64 | +eq("File \"bs_float_test.ml\", line 30, characters 5-12", Belt_Float.fromString("-1.5"), -1.5); |
64 | 65 |
|
65 |
| -eq("File \"bs_float_test.ml\", line 31, characters 5-12", parseFloat("-1.7"), -1.7); |
| 66 | +eq("File \"bs_float_test.ml\", line 31, characters 5-12", Belt_Float.fromString("-1.7"), -1.7); |
66 | 67 |
|
67 |
| -eq("File \"bs_float_test.ml\", line 34, characters 5-12", String(1.0), "1"); |
| 68 | +eq("File \"bs_float_test.ml\", line 32, characters 5-12", Belt_Float.fromString("not a float"), undefined); |
68 | 69 |
|
69 |
| -eq("File \"bs_float_test.ml\", line 35, characters 5-12", String(-1.0), "-1"); |
| 70 | +eq("File \"bs_float_test.ml\", line 35, characters 5-12", String(1.0), "1"); |
70 | 71 |
|
71 |
| -eq("File \"bs_float_test.ml\", line 36, characters 5-12", String(-1.5), "-1.5"); |
| 72 | +eq("File \"bs_float_test.ml\", line 36, characters 5-12", String(-1.0), "-1"); |
72 | 73 |
|
73 |
| -eq("File \"bs_float_test.ml\", line 40, characters 5-12", 2.0 + 3.0, 5.0); |
| 74 | +eq("File \"bs_float_test.ml\", line 37, characters 5-12", String(-1.5), "-1.5"); |
74 | 75 |
|
75 |
| -eq("File \"bs_float_test.ml\", line 41, characters 5-12", 2.0 - 3.0, -1.0); |
| 76 | +eq("File \"bs_float_test.ml\", line 41, characters 5-12", 2.0 + 3.0, 5.0); |
76 | 77 |
|
77 |
| -eq("File \"bs_float_test.ml\", line 42, characters 5-12", 2.0 * 3.0, 6.0); |
| 78 | +eq("File \"bs_float_test.ml\", line 42, characters 5-12", 2.0 - 3.0, -1.0); |
78 | 79 |
|
79 |
| -eq("File \"bs_float_test.ml\", line 43, characters 5-12", 3.0 / 2.0, 1.5); |
| 80 | +eq("File \"bs_float_test.ml\", line 43, characters 5-12", 2.0 * 3.0, 6.0); |
80 | 81 |
|
81 |
| -Mt.from_pair_suites("File \"bs_float_test.ml\", line 45, characters 23-30", suites[0]); |
| 82 | +eq("File \"bs_float_test.ml\", line 44, characters 5-12", 3.0 / 2.0, 1.5); |
| 83 | + |
| 84 | +Mt.from_pair_suites("File \"bs_float_test.ml\", line 46, characters 23-30", suites[0]); |
82 | 85 |
|
83 | 86 | var F = 0;
|
84 | 87 |
|
|
0 commit comments