Skip to content

Commit 614c29a

Browse files
committed
Format ReScript test file
1 parent bd4c20c commit 614c29a

1 file changed

Lines changed: 19 additions & 7 deletions

File tree

  • tests/build_tests/json_null_check/src

tests/build_tests/json_null_check/src/Main.res

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,23 @@ Console.log2("testNullWithAllTypes:", result5)
8181
Console.log2("testNullWithExplicitNull:", result6)
8282

8383
// Assertions - these will throw if wrong
84-
if result1 !== "other" { Console.error("FAIL: testNullWithArrayAndObject") }
85-
if result2 !== "array" { Console.error("FAIL: testArrayWithArrayAndObject") }
86-
if result3 !== "object" { Console.error("FAIL: testObjectWithArrayAndObject") }
87-
if result4 !== "other" { Console.error("FAIL: testNullWithOnlyObject") }
88-
if result5 !== "null" { Console.error("FAIL: testNullWithAllTypes") }
89-
if result6 !== "null" { Console.error("FAIL: testNullWithExplicitNull") }
84+
if result1 !== "other" {
85+
Console.error("FAIL: testNullWithArrayAndObject")
86+
}
87+
if result2 !== "array" {
88+
Console.error("FAIL: testArrayWithArrayAndObject")
89+
}
90+
if result3 !== "object" {
91+
Console.error("FAIL: testObjectWithArrayAndObject")
92+
}
93+
if result4 !== "other" {
94+
Console.error("FAIL: testNullWithOnlyObject")
95+
}
96+
if result5 !== "null" {
97+
Console.error("FAIL: testNullWithAllTypes")
98+
}
99+
if result6 !== "null" {
100+
Console.error("FAIL: testNullWithExplicitNull")
101+
}
90102

91-
Console.log("All tests passed!")
103+
Console.log("All tests passed!")

0 commit comments

Comments
 (0)