Skip to content

Commit

Permalink
added unittest, fixes HaxeCheckstyle#78
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Apr 20, 2018
1 parent 530876c commit 6b1ee50
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/checks/whitespace/WhitespaceAroundCheckTest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class WhitespaceAroundCheckTest extends CheckTestCase<WhitespaceAroundCheckTests
assertNoMsg(check, NEGATIVE_VARS);
assertNoMsg(check, NEGATIVE_NUMS);
assertNoMsg(check, OPGT);
assertNoMsg(check, ISSUE_78);
}

@Test
Expand Down Expand Up @@ -260,4 +261,16 @@ abstract WhitespaceAroundCheckTests(String) to String {
if (a >>> b > c) return a >>>= b;
}
}";

var ISSUE_78 = "
#if true
@:forward
abstract Test(Int) {
function foo(nullableArg:Null<Int>) {}
}
#else
import haxe.ds.ArraySort;
class Test {}
#end
";
}

0 comments on commit 6b1ee50

Please sign in to comment.