Skip to content

Commit a6b552f

Browse files
committed
Fix test for JS
It seems JS prints doubles differently from Java, so avoid them in test check files.
1 parent 264566d commit a6b552f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Map(0 -> 3.0, 1 -> 6.0, 2 -> 6.0)
1+
Map(0 -> 6, 1 -> 12, 2 -> 12)

tests/run/drop-apply-optimization.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class A:
1010
.groupMapReduce: (k, v) =>
1111
(k + 3) % 3
1212
.apply: (k, v) =>
13-
v.toDouble
13+
v * 2
1414
.apply: (x, y) =>
1515
x + y
1616
println(res)

0 commit comments

Comments
 (0)