File tree Expand file tree Collapse file tree 3 files changed +12
-14
lines changed
modules/integration/src/test/scala/scala/cli/integration Expand file tree Collapse file tree 3 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,8 @@ class ArgsFileTests extends ScalaCliSuite {
15
15
os.rel / " args.txt" -> """ |-release
16
16
|8""" .stripMargin,
17
17
os.rel / fileName ->
18
- s """ |import java.net.http.HttpClient
19
- |
20
- |println("Hello :)")
18
+ s """ |
19
+ |println("Hello :)".repeat(11))
21
20
| """ .stripMargin
22
21
)
23
22
@@ -40,9 +39,8 @@ class ArgsFileTests extends ScalaCliSuite {
40
39
os.rel / " args.txt" -> """ |-release 8""" .stripMargin,
41
40
os.rel / " script-with-shebang" ->
42
41
s """ |#!/usr/bin/env -S ${TestUtil .cli.mkString(" " )} shebang @args.txt
43
- |import java.net.http.HttpClient
44
42
|
45
- |println("Hello :)")
43
+ |println("Hello :)".repeat(11) )
46
44
| """ .stripMargin
47
45
)
48
46
Original file line number Diff line number Diff line change @@ -211,18 +211,18 @@ class BloopTests extends ScalaCliSuite {
211
211
val content =
212
212
if (isScala)
213
213
""" |package a
214
- |import java.net.http.HttpClient
214
+ |
215
215
|
216
216
|trait Simple {
217
- | def httpClient: HttpClient
217
+ | val str = "".repeat(2)
218
218
|}
219
219
|""" .stripMargin
220
220
else """ |package a;
221
221
|
222
- |import java.net.http.HttpClient;
223
- |
224
- |interface Simple {
225
- | HttpClient httpClient();
222
+ |class Simple {
223
+ | void hello(){
224
+ | String str = "".repeat(2);
225
+ | }
226
226
|}
227
227
|""" .stripMargin
228
228
val inputs = TestInputs (os.rel / s " Simple. $lang" -> s " $directive$content" )
@@ -234,8 +234,8 @@ class BloopTests extends ScalaCliSuite {
234
234
235
235
val compilationError = res.err.text()
236
236
val message =
237
- if (isScala) " value http is not a member of java.net "
238
- else " error: package java.net.http does not exist "
237
+ if (isScala) " value repeat is not a member of String "
238
+ else " error: cannot find symbol "
239
239
240
240
assert(compilationError.contains(" Compilation failed" ))
241
241
assert(compilationError.contains(message))
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ object Deps {
123
123
def signingCliJvmVersion = Java .defaultJava
124
124
def javaSemanticdb = " 0.10.0"
125
125
def javaClassName = " 0.1.3"
126
- def bloop = " 2.0.0 "
126
+ def bloop = " 2.0.2 "
127
127
def sbtVersion = " 1.10.2"
128
128
def mavenVersion = " 3.8.1"
129
129
def mavenScalaCompilerPluginVersion = " 4.9.1"
You can’t perform that action at this time.
0 commit comments