Skip to content

Commit 0880e69

Browse files
committed
.
1 parent 5c99734 commit 0880e69

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

amm/src/test/scala/ammonite/main/LineNumberTests.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ object LineNumberTests extends TestSuite {
2020

2121
val sv = ammonite.compiler.CompilerBuilder.scalaVersion
2222
val isScala2 = sv.startsWith("2.")
23-
val isPre3_4 = sv.take(4) <= "3.3."
23+
val isPre3_3_4 = sv < "3.3.4"
2424

2525
test("sourcecode") {
2626
if (isScala2) {
@@ -133,7 +133,7 @@ object LineNumberTests extends TestSuite {
133133
s"""$path:14: not found: value printnl
134134
|val res_0 = printnl("OK")
135135
| ^""".stripMargin
136-
else if (isPre3_4) {
136+
else if (isPre3_3_4) {
137137
val sp = " "
138138
s"""-- [E006] Not Found Error: $path:1:12$sp
139139
|1 |val res_0 = printnl("OK")
@@ -162,7 +162,7 @@ object LineNumberTests extends TestSuite {
162162
s"""$path:30: not found: value prinntl
163163
|val res = prinntl("Ammonite")
164164
| ^""".stripMargin
165-
else if (isPre3_4) {
165+
else if (isPre3_3_4) {
166166
val sp = " "
167167
s"""-- [E006] Not Found Error: $path:3:10$sp
168168
|3 |val res = prinntl("Ammonite")

integration/src/test/scala/ammonite/integration/LineNumberTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ object LineNumberTests extends TestSuite {
2727
"""compilationErrorInSecondBlock.sc:14: not found: value printnl
2828
|val res_0 = printnl("OK")
2929
| ^""".stripMargin
30-
else if (scalaVersion.dropWhile(_ != '.') < ".4")
30+
else if (scalaVersion < "3.3.4")
3131
s"""-- [E006] Not Found Error: ${replStandaloneResources / path}:1:12$sp
3232
|1 |val res_0 = printnl("OK")
3333
| | ^^^^^^^

0 commit comments

Comments
 (0)