From ad279a6b15c774e6e104b439cca9130f901e6301 Mon Sep 17 00:00:00 2001 From: teridax Date: Wed, 12 Jul 2023 21:52:06 +0200 Subject: [PATCH] added one more test for percentage decoding --- src/me/teridax/jcash/decode/StringDecoder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/me/teridax/jcash/decode/StringDecoder.java b/src/me/teridax/jcash/decode/StringDecoder.java index 86751b6..860df04 100644 --- a/src/me/teridax/jcash/decode/StringDecoder.java +++ b/src/me/teridax/jcash/decode/StringDecoder.java @@ -166,6 +166,7 @@ public class StringDecoder { assertEquals(decodePercent("1,4%"), 1.4, 1e-3d); assertEquals(decodePercent("99"), 9900.0d); assertEquals(decodePercent("1,003%"), 1.003, 1e-5d); + assertEquals(decodePercent("1,003"), 100.3, 1e-5d); assertEquals(decodeCurrency("1,3€"), 1.3d); assertEquals(decodeCurrency("145,34"), 145,34d);