added one more test for percentage decoding
This commit is contained in:
parent
22a15c3bb9
commit
ad279a6b15
|
@ -166,6 +166,7 @@ public class StringDecoder {
|
||||||
assertEquals(decodePercent("1,4%"), 1.4, 1e-3d);
|
assertEquals(decodePercent("1,4%"), 1.4, 1e-3d);
|
||||||
assertEquals(decodePercent("99"), 9900.0d);
|
assertEquals(decodePercent("99"), 9900.0d);
|
||||||
assertEquals(decodePercent("1,003%"), 1.003, 1e-5d);
|
assertEquals(decodePercent("1,003%"), 1.003, 1e-5d);
|
||||||
|
assertEquals(decodePercent("1,003"), 100.3, 1e-5d);
|
||||||
|
|
||||||
assertEquals(decodeCurrency("1,3€"), 1.3d);
|
assertEquals(decodeCurrency("1,3€"), 1.3d);
|
||||||
assertEquals(decodeCurrency("145,34"), 145,34d);
|
assertEquals(decodeCurrency("145,34"), 145,34d);
|
||||||
|
|
Loading…
Reference in New Issue