Skip to content

Commit e5a985c

Browse files
committed
attempt
1 parent a7d7c8c commit e5a985c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

compiler/test/dotty/tools/dotc/TupleShowTests.scala

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,18 @@ class TupleShowTests extends DottyTest:
3232
@Test def tup24_show = chkEq(res24, i"$tup24")
3333

3434
@Test def tup24_debug =
35-
val exp = res24.toList
36-
val obt = i"$tup24".toList
35+
val exp = res24.replace("\n", System.lineSeparator()).nn
36+
val obt = i"$tup24"
3737
println(i"exp: ${exp.length} chars")
3838
println(i"obt: ${obt.length} chars")
39-
List.range(0, exp.length min obt.length).lazyZip(exp).lazyZip(obt).foreach { (idx, expCh, obtCh) =>
39+
List.range(0, exp.length min obt.length).lazyZip(exp.toList).lazyZip(obt.toList).foreach { (idx, expCh, obtCh) =>
4040
if expCh != obtCh then
4141
println(i"at $idx: exp=${expCh.toInt} obt=${obtCh.toInt}")
4242
}
43+
44+
// exp 10 32 73
45+
// obt 13 10 32 73
46+
4347
chkEq(exp, obt)
4448

4549
@Test def tup3_text =

0 commit comments

Comments
 (0)