Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add failing test
  • Loading branch information
bbuchalter committed May 10, 2022
commit 74379e5459a0928fca42ec28b991ff61ab530ca6
6 changes: 6 additions & 0 deletions test/fixtures/if.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@
%
if foo {}
end
%
Copy link
Contributor Author

@bbuchalter bbuchalter May 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprised this new fixture doesn't result in a test failure in CI. I get one locally:

  1) Failure:
SyntaxTree::FormattingTest#test_formatted_if_9 [/Users/brian.buchalter/workspace/syntax_tree/test/formatting_test.rb:9]:
--- expected
+++ actual
@@ -1,6 +1,2 @@
-"if not a
-  b
-else
-  c
-end
+"not a ? b : c
 "

if not a
b
else
c
end