Skip to content

Commit

Permalink
Add formatter spec for uppercased fun call
Browse files Browse the repository at this point in the history
  • Loading branch information
bew authored and matiasgarciaisaia committed Jan 25, 2018
1 parent b793876 commit 7f05801
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/compiler/formatter/formatter_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,9 @@ describe Crystal::Formatter do
assert_format "lib Foo\nstruct Foo\nx , y , z : Int32\nend\nend", "lib Foo\n struct Foo\n x, y, z : Int32\n end\nend"
assert_format "lib Foo\nunion Foo\nend\nend", "lib Foo\n union Foo\n end\nend"

assert_format "SomeLib.UppercasedFunCall"
assert_format "SomeLib.UppercasedFunCall 1, 2"

assert_format "enum Foo\nend"
assert_format "enum Foo\nA \nend", "enum Foo\n A\nend"
assert_format "enum Foo\nA = 1\nend", "enum Foo\n A = 1\nend"
Expand Down

0 comments on commit 7f05801

Please sign in to comment.