File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
amm/src/test/scala/ammonite/main
integration/src/test/scala/ammonite/integration Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ object LineNumberTests extends TestSuite {
20
20
21
21
val sv = ammonite.compiler.CompilerBuilder .scalaVersion
22
22
val isScala2 = sv.startsWith(" 2." )
23
- val isPre3_4 = sv.take( 4 ) <= " 3.3."
23
+ val isPre3_3_4 = sv < " 3.3.4 "
24
24
25
25
test(" sourcecode" ) {
26
26
if (isScala2) {
@@ -133,7 +133,7 @@ object LineNumberTests extends TestSuite {
133
133
s """ $path:14: not found: value printnl
134
134
|val res_0 = printnl("OK")
135
135
| ^ """ .stripMargin
136
- else if (isPre3_4 ) {
136
+ else if (isPre3_3_4 ) {
137
137
val sp = " "
138
138
s """ -- [E006] Not Found Error: $path:1:12 $sp
139
139
|1 |val res_0 = printnl("OK")
@@ -162,7 +162,7 @@ object LineNumberTests extends TestSuite {
162
162
s """ $path:30: not found: value prinntl
163
163
|val res = prinntl("Ammonite")
164
164
| ^ """ .stripMargin
165
- else if (isPre3_4 ) {
165
+ else if (isPre3_3_4 ) {
166
166
val sp = " "
167
167
s """ -- [E006] Not Found Error: $path:3:10 $sp
168
168
|3 |val res = prinntl("Ammonite")
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ object LineNumberTests extends TestSuite {
27
27
""" compilationErrorInSecondBlock.sc:14: not found: value printnl
28
28
|val res_0 = printnl("OK")
29
29
| ^""" .stripMargin
30
- else if (scalaVersion.dropWhile(_ != '.' ) < " .4" )
30
+ else if (scalaVersion < " 3.3 .4" )
31
31
s """ -- [E006] Not Found Error: ${replStandaloneResources / path}:1:12 $sp
32
32
|1 |val res_0 = printnl("OK")
33
33
| | ^^^^^^^
You can’t perform that action at this time.
0 commit comments