Skip to content

Commit 15eaf01

Browse files
committed
Fix running tests on 2.13.3
Symbol#toString changed, so we can't rely on it in tests.
1 parent 8eb7ed6 commit 15eaf01

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

sourcecode/test/src/sourcecode/TextTests.scala

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@ object TextTests {
55
assert(foo(1) == (1, "1"))
66
val bar = Seq("lols")
77
assert(foo(bar) == (Seq("lols"), "bar"))
8-
if (TestUtil.isDotty) {
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"))
11-
} else {
12-
assert(foo(Symbol("lol").toString * 2) == ("'lol'lol", "Symbol(\"lol\").toString * 2"))
13-
assert(foo{println("Hello"); Symbol("lol").toString * 2} == ("'lol'lol", "Symbol(\"lol\").toString * 2"))
14-
}
8+
assert(foo(List("lol").toString * 2) == ("List(lol)List(lol)", "List(\"lol\").toString * 2"))
9+
assert(foo{println("Hello"); List("lol").toString * 2} == ("List(lol)List(lol)", "List(\"lol\").toString * 2"))
1510
}
1611
def foo[T](v: sourcecode.Text[T]) = (v.value, v.source)
1712
}

0 commit comments

Comments
 (0)