@@ -118,6 +118,21 @@ public void moreThanOneHParam() throws IOException, InterruptedException {
118
118
convertAndCompareVisually (sourceFolder , destinationFolder , "moreThanOneHParam" );
119
119
}
120
120
121
+ @ Test
122
+ public void negativeAfterPositiveHandlingTest01 () throws IOException , InterruptedException {
123
+ convertAndCompareVisually (sourceFolder , destinationFolder , "negativeAfterPositiveHandling" );
124
+ }
125
+
126
+ @ Test
127
+ public void negativeAfterPositiveHandlingTest02 () throws IOException , InterruptedException {
128
+ convertAndCompareVisually (sourceFolder , destinationFolder , "negativeAfterPositiveHandlingExtendedViewbox" );
129
+ }
130
+
131
+ @ Test
132
+ public void insignificantSpacesTest () throws IOException , InterruptedException {
133
+ convertAndCompareVisually (sourceFolder , destinationFolder , "insignificantSpaces" );
134
+ }
135
+
121
136
@ Test
122
137
public void decimalPointParsingTest (){
123
138
PathSvgNodeRenderer path = new PathSvgNodeRenderer ();
@@ -152,10 +167,19 @@ public void decimalPointParsingMinusTest(){
152
167
PathSvgNodeRenderer path = new PathSvgNodeRenderer ();
153
168
String input = "2.35.96 3.25-.25" ;
154
169
155
- String expected = "2.35 .96 3.25-.25" ;
170
+ String expected = "2.35 .96 3.25 -.25" ;
156
171
String actual = path .separateDecimalPoints (input );
157
172
Assert .assertEquals (expected ,actual );
158
173
}
159
174
175
+ @ Test
176
+ public void negativeAfterPositiveTest (){
177
+ PathSvgNodeRenderer path = new PathSvgNodeRenderer ();
178
+ String input = "40-50" ;
179
+
180
+ String expected = "40 -50" ;
181
+ String actual = path .separateDecimalPoints (input );
182
+ Assert .assertEquals (expected ,actual );
183
+ }
160
184
}
161
185
0 commit comments