diff options
Diffstat (limited to 'test/org/traccar/helper')
-rw-r--r-- | test/org/traccar/helper/PatternBuilderTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/helper/PatternBuilderTest.java b/test/org/traccar/helper/PatternBuilderTest.java index 427161758..10621693e 100644 --- a/test/org/traccar/helper/PatternBuilderTest.java +++ b/test/org/traccar/helper/PatternBuilderTest.java @@ -10,6 +10,9 @@ public class PatternBuilderTest { Assert.assertEquals("\\$GPRMC", new PatternBuilder().text("$GPRMC").toString()); Assert.assertEquals("(\\d{2}\\.\\p{XDigit}+)", new PatternBuilder().number("(dd.x+)").toString()); Assert.assertEquals("a(?:bc)?", new PatternBuilder().text("a").text("b").text("c").optional(2).toString()); + Assert.assertEquals("a|b", new PatternBuilder().expression("a|b").toString()); + Assert.assertEquals("ab\\|", new PatternBuilder().expression("ab|").toString()); + Assert.assertEquals("|", new PatternBuilder().or().toString()); } } |