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 {
1515 os.rel / " args.txt" -> """ |-release
1616 |8""" .stripMargin,
1717 os.rel / fileName ->
18- s """ |import java.net.http.HttpClient
19- |
20- |println("Hello :)")
18+ s """ |
19+ |println("Hello :)".repeat(11))
2120 | """ .stripMargin
2221 )
2322
@@ -40,9 +39,8 @@ class ArgsFileTests extends ScalaCliSuite {
4039 os.rel / " args.txt" -> """ |-release 8""" .stripMargin,
4140 os.rel / " script-with-shebang" ->
4241 s """ |#!/usr/bin/env -S ${TestUtil .cli.mkString(" " )} shebang @args.txt
43- |import java.net.http.HttpClient
4442 |
45- |println("Hello :)")
43+ |println("Hello :)".repeat(11) )
4644 | """ .stripMargin
4745 )
4846
Original file line number Diff line number Diff line change @@ -211,18 +211,18 @@ class BloopTests extends ScalaCliSuite {
211211 val content =
212212 if (isScala)
213213 """ |package a
214- |import java.net.http.HttpClient
214+ |
215215 |
216216 |trait Simple {
217- | def httpClient: HttpClient
217+ | val str = "".repeat(2)
218218 |}
219219 |""" .stripMargin
220220 else """ |package a;
221221 |
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+ | }
226226 |}
227227 |""" .stripMargin
228228 val inputs = TestInputs (os.rel / s " Simple. $lang" -> s " $directive$content" )
@@ -234,8 +234,8 @@ class BloopTests extends ScalaCliSuite {
234234
235235 val compilationError = res.err.text()
236236 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 "
239239
240240 assert(compilationError.contains(" Compilation failed" ))
241241 assert(compilationError.contains(message))
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ object Deps {
123123 def signingCliJvmVersion = Java .defaultJava
124124 def javaSemanticdb = " 0.10.0"
125125 def javaClassName = " 0.1.3"
126- def bloop = " 2.0.0 "
126+ def bloop = " 2.0.2 "
127127 def sbtVersion = " 1.10.2"
128128 def mavenVersion = " 3.8.1"
129129 def mavenScalaCompilerPluginVersion = " 4.9.1"
You can’t perform that action at this time.
0 commit comments