Skip to content

Commit

Permalink
test support of shebang in script files
Browse files Browse the repository at this point in the history
  • Loading branch information
bjaglin committed Aug 24, 2024
1 parent 54c8022 commit b22f829
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ class CliSyntacticSuite extends BaseCliSuite {
check(
name = "fix script files",
originalLayout = s"""|/a.sc
|#!/usr/bin/env -S scala-cli shebang
|def foo = { println(s"hello") }
|lazy val bar = project
|""".stripMargin,
Expand All @@ -321,6 +322,7 @@ class CliSyntacticSuite extends BaseCliSuite {
"a.sc"
),
expectedLayout = s"""|/a.sc
|#!/usr/bin/env -S scala-cli shebang
|def foo = { println("hello") }
|lazy val bar = project
|""".stripMargin,
Expand Down

0 comments on commit b22f829

Please sign in to comment.