Skip to content

Commit affced6

Browse files
Fix TextTests to run on Dotty
1 parent f480cc1 commit affced6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sourcecode/test/src/sourcecode/TextTests.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ object TextTests {
55
assert(foo(1) == (1, "1"))
66
val bar = Seq("lols")
77
assert(foo(bar) == (Seq("lols"), "bar"))
8-
// FIXME Don't pass on dotty (second element not ok)
98
if (TestUtil.isDotty) {
10-
assert(foo(Symbol("lol").toString * 2)._1 == "'lol'lol")
11-
assert(foo{println("Hello"); Symbol("lol").toString * 2}._1 == "'lol'lol")
9+
assert(foo(Symbol("lol").toString * 2) == ("'lol'lol", "Symbol(\"lol\").toString * 2"))
10+
assert(foo{println("Hello"); Symbol("lol").toString * 2} == ("'lol'lol", "Symbol(\"lol\").toString * 2"))
1211
} else {
1312
assert(foo(Symbol("lol").toString * 2) == ("'lol'lol", "'lol.toString * 2"))
1413
assert(foo{println("Hello"); Symbol("lol").toString * 2} == ("'lol'lol", "'lol.toString * 2"))

0 commit comments

Comments
 (0)