File tree 1 file changed +12
-1
lines changed
src/test/java/de/rwth/idsg/steve/web/validation
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,20 @@ public void testColon() {
91
91
Assertions .assertTrue (validator .isValid ("VID:00XXXXXXXXXX" , null ));
92
92
}
93
93
94
+ @ Test
95
+ public void testPoundSign () {
96
+ Assertions .assertTrue (validator .isValid ("#test" , null ));
97
+ Assertions .assertTrue (validator .isValid ("test#" , null ));
98
+ Assertions .assertTrue (validator .isValid ("te##st" , null ));
99
+
100
+ // Tag provided by Webasto charge points
101
+ // https://github.com/steve-community/steve/pull/1322
102
+ Assertions .assertTrue (validator .isValid ("#FreeCharging" , null ));
103
+ }
104
+
94
105
@ Test
95
106
public void testCombined () {
96
- Assertions .assertTrue (validator .isValid ("1t.E-S_:t20" , null ));
107
+ Assertions .assertTrue (validator .isValid ("1t.E-S_:t20# " , null ));
97
108
}
98
109
99
110
}
You can’t perform that action at this time.
0 commit comments