Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <[email protected]>
  • Loading branch information
jimtng committed Sep 6, 2024
1 parent 17f2d87 commit 5220147
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,4 +349,15 @@ public void testIsValidTransform() {
assertFalse(ChannelTransformation.isValidTransformation("FOO∩BAZ:BAR"));
assertFalse(ChannelTransformation.isValidTransformation("FOO∩BAZ(BAR)"));
}

@Test
public void testBlanksAndCommentsAreDiscarded() {
List<String> pattern = List.of("#hash comment", "//double slashes", " # preceded by spaces",
" // ditto for slashes", " ", "\t", "\t\t\t", "\t# preceded by a tab",
"\t // preceded by tab and space");

ChannelTransformation transformation = new ChannelTransformation(pattern);

assertTrue(transformation.isEmpty());
}
}

0 comments on commit 5220147

Please sign in to comment.