aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/helper/PatternBuilderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/traccar/helper/PatternBuilderTest.java')
-rw-r--r--test/org/traccar/helper/PatternBuilderTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/org/traccar/helper/PatternBuilderTest.java b/test/org/traccar/helper/PatternBuilderTest.java
index 10621693e..36054bcea 100644
--- a/test/org/traccar/helper/PatternBuilderTest.java
+++ b/test/org/traccar/helper/PatternBuilderTest.java
@@ -13,6 +13,7 @@ public class PatternBuilderTest {
Assert.assertEquals("a|b", new PatternBuilder().expression("a|b").toString());
Assert.assertEquals("ab\\|", new PatternBuilder().expression("ab|").toString());
Assert.assertEquals("|", new PatternBuilder().or().toString());
+ Assert.assertEquals("\\|\\d|\\d\\|", new PatternBuilder().number("|d|d|").toString());
}
}