aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2019-02-04 02:37:47 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2019-02-04 02:37:47 +0000
commit7e01bae3cd7b64686ee25d11172a8051b37eb799 (patch)
treee175e61770eed86fd4fff263aa6a1740e1e342cf /src/test
parentc8a05d8f59f131312b078aca5726a194a45bafa5 (diff)
downloadjackcess-7e01bae3cd7b64686ee25d11172a8051b37eb799.tar.gz
jackcess-7e01bae3cd7b64686ee25d11172a8051b37eb799.zip
handle number formats with no required digits
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/jdk8@1273 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/healthmarketscience/jackcess/impl/expr/DefaultFunctionsTest.java17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/test/java/com/healthmarketscience/jackcess/impl/expr/DefaultFunctionsTest.java b/src/test/java/com/healthmarketscience/jackcess/impl/expr/DefaultFunctionsTest.java
index b25f150..dc4cabb 100644
--- a/src/test/java/com/healthmarketscience/jackcess/impl/expr/DefaultFunctionsTest.java
+++ b/src/test/java/com/healthmarketscience/jackcess/impl/expr/DefaultFunctionsTest.java
@@ -472,11 +472,20 @@ public class DefaultFunctionsTest extends TestCase
assertEvalFormat("'#'",
"13", "13",
- "0", "0.003",
+ "", "0.003",
"-45", "-45",
- "0", "-0.003"
- // FIXME
- // "", "0"
+ "", "-0.003",
+ "", "0"
+ );
+
+ assertEvalFormat("'\\0\\[#.#\\]\\0'",
+ "0[13.]0", "13",
+ "0[.]0", "0.003",
+ "0[.3]0", "0.3",
+ "-0[45.]0", "-45",
+ "0[.]0", "-0.003",
+ "-0[.3]0", "-0.3",
+ "0[.]0", "0"
);
assertEvalFormat("\"#;n'g;'\"",