Skip to content

Commit 9a9e687

Browse files
committed
Fix test
1 parent 6e7a5c2 commit 9a9e687

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

tests/tests/src/core/Core_TestTests.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,17 @@ Test.run([
139139
Test.run([
140140
[
141141
"Core_TestTests.res",
142-
19,
143-
13,
144-
29
142+
18,
143+
20,
144+
36
145145
],
146146
"print function"
147-
], Test.print(() => 42), eq, "function () {\n return 42;\n }");
147+
], Test.print(() => 42), eq, "() => 42");
148148

149149
Test.run([
150150
[
151151
"Core_TestTests.res",
152-
24,
152+
19,
153153
20,
154154
40
155155
],
@@ -159,7 +159,7 @@ Test.run([
159159
Test.run([
160160
[
161161
"Core_TestTests.res",
162-
26,
162+
21,
163163
13,
164164
27
165165
],
@@ -169,7 +169,7 @@ Test.run([
169169
Test.run([
170170
[
171171
"Core_TestTests.res",
172-
31,
172+
26,
173173
20,
174174
31
175175
],

tests/tests/src/core/Core_TestTests.res

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ Test.run(__POS_OF__("print bool"), Test.print(true), eq, "true")
1515
Test.run(__POS_OF__("print object"), Test.print({"x": 42}), eq, `{ x: 42 }`)
1616
Test.run(__POS_OF__("print array"), Test.print([1, 2, 3]), eq, "[ 1, 2, 3 ]")
1717
Test.run(__POS_OF__("print symbol"), Test.print(Symbol.make("foo")), eq, "Symbol(foo)")
18-
Test.run(
19-
__POS_OF__("print function"),
20-
Test.print(() => 42),
21-
eq,
22-
"function () {\n return 42;\n }",
23-
)
18+
Test.run(__POS_OF__("print function"), Test.print(() => 42), eq, "() => 42")
2419
Test.run(__POS_OF__("print es6 function"), Test.print(%raw("() => 42")), eq, "() => 42")
2520
Test.run(
2621
__POS_OF__("print bigint"),

0 commit comments

Comments
 (0)