Skip to content

Commit

Permalink
Add specs with a newline at only one end
Browse files Browse the repository at this point in the history
  • Loading branch information
Blacksmoke16 committed Dec 21, 2024
1 parent e6c9050 commit 3408a66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/compiler/parser/to_s_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ describe "ASTNode#to_s" do
expect_to_s "{%\n 1\n 2\n 3\n%}"
expect_to_s "{%\n 1\n%}"
expect_to_s "{%\n 2 + 2\n%}"
expect_to_s "{%\n a = 1 %}", "{%\n a = 1\n%}"
expect_to_s "{% a = 1\n%}", "{% a = 1 %}"

expect_to_s %(asm("nop" ::::))
expect_to_s %(asm("nop" : "a"(1), "b"(2) : "c"(3), "d"(4) : "e", "f" : "volatile", "alignstack", "intel"))
Expand Down

0 comments on commit 3408a66

Please sign in to comment.