Skip to content

Commit

Permalink
ktlint: use KOTLIN heredoc delimiter for .kt files
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Dec 15, 2024
1 parent 10da452 commit a54e3ef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Formula/k/ktlint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ def install
end

test do
(testpath/"Main.kt").write <<~EOS
(testpath/"Main.kt").write <<~KOTLIN
fun main( )
EOS
(testpath/"Out.kt").write <<~EOS
KOTLIN

(testpath/"Out.kt").write <<~KOTLIN
fun main()
EOS
KOTLIN

system bin/"ktlint", "-F", "Main.kt"
assert_equal shell_output("cat Main.kt"), shell_output("cat Out.kt")
end
Expand Down

0 comments on commit a54e3ef

Please sign in to comment.