Skip to content

Commit 62c4ecd

Browse files
committed
Fix export tests to support Scala Native 0.5.x syntax
1 parent 471b102 commit 62c4ecd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/integration/src/test/scala/scala/cli/integration/ExportTestProjects.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,31 +100,31 @@ object ExportTestProjects {
100100
val nl = "\\n"
101101
val testFile =
102102
if (scalaVersion.startsWith("3."))
103-
s"""//> using scala "$scalaVersion"
104-
|//> using platform "scala-native"
103+
s"""//> using scala $scalaVersion
104+
|//> using platform scala-native
105105
|
106106
|import scala.scalanative.libc._
107107
|import scala.scalanative.unsafe._
108108
|
109109
|object Test:
110110
| def main(args: Array[String]): Unit =
111111
| val message = "Hello from " + "exported Scala CLI project" + "$nl"
112-
| Zone { implicit z =>
112+
| Zone {
113113
| val io = StdioHelpers(stdio)
114114
| io.printf(c"%s", toCString(message))
115115
| }
116116
|""".stripMargin
117117
else
118-
s"""//> using scala "$scalaVersion"
119-
|//> using platform "scala-native"
118+
s"""//> using scala $scalaVersion
119+
|//> using platform scala-native
120120
|
121121
|import scala.scalanative.libc._
122122
|import scala.scalanative.unsafe._
123123
|
124124
|object Test {
125125
| def main(args: Array[String]): Unit = {
126126
| val message = "Hello from " + "exported Scala CLI project" + "$nl"
127-
| Zone { implicit z =>
127+
| Zone.acquire { implicit z =>
128128
| val io = StdioHelpers(stdio)
129129
| io.printf(c"%s", toCString(message))
130130
| }

0 commit comments

Comments
 (0)