|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
/*
|
|
|
|
|
XOWA: the XOWA Offline Wiki Application
|
|
|
|
|
Copyright (C) 2012-2020 gnosygnu@gmail.com
|
|
|
|
|
Copyright (C) 2012-2021 gnosygnu@gmail.com
|
|
|
|
|
|
|
|
|
|
XOWA is licensed under the terms of the General Public License (GPL) Version 3,
|
|
|
|
|
or alternatively under the terms of the Apache License Version 2.0.
|
|
|
|
@ -42,6 +42,9 @@ public class Decimal_adp__tst {
|
|
|
|
|
fxt.Test_parse("1.2E1", "12");
|
|
|
|
|
fxt.Test_parse("1.2e1", "12"); // 2020-08-27|ISSUE#:565|Parse 'e' as 'E'; PAGE:en.w:Huntington_Plaza
|
|
|
|
|
}
|
|
|
|
|
@Test public void parse_dot() {
|
|
|
|
|
fxt.Test_parse(".", "0"); // 2021-02-13|ISSUE#:838|Parse '.' as '0.'; PAGE:en.w:2019_FIVB_Volleyball_Women%27s_Challenger_Cup#Pool_A
|
|
|
|
|
}
|
|
|
|
|
@Test public void Truncate_decimal() {
|
|
|
|
|
fxt.Test_truncate_decimal("1", "1");
|
|
|
|
|
fxt.Test_truncate_decimal("1.1", "1");
|
|
|
|
|