Skip to content

Commit

Permalink
bugfix for comment after switch, closes #77
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Mar 3, 2016
1 parent d05f7d8 commit ab1e2f4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/WhitespaceAroundCheckTest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class WhitespaceAroundCheckTest extends CheckTestCase {
assertMsg(check, WhitespaceAroundTests.ISSUE_70, '');
assertMsg(check, WhitespaceAroundTests.ISSUE_71, '');
assertMsg(check, WhitespaceAroundTests.ISSUE_72, '');
assertMsg(check, WhitespaceAroundTests.ISSUE_77, '');
assertMsg(check, WhitespaceAroundTests.ISSUE_80, '');
}

Expand Down Expand Up @@ -120,6 +121,19 @@ class WhitespaceAroundTests {
abstract Test<T>(Array<T>) {}
";

public static inline var ISSUE_77:String = "
// comment
class Test // comment
{ // comment
function foo() // comment
{ // comment
switch ('Test') // comment
{ // comment
} // comment
} // comment
} // comment
";

public static inline var ISSUE_80:String = "
interface Test implements Dynamic {}
";
Expand Down

1 comment on commit ab1e2f4

@Gama11
Copy link
Member

@Gama11 Gama11 commented on ab1e2f4 Mar 3, 2016

Choose a reason for hiding this comment

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

Nice test case. :D

Please sign in to comment.