diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2019-02-04 02:37:47 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2019-02-04 02:37:47 +0000 |
commit | 7e01bae3cd7b64686ee25d11172a8051b37eb799 (patch) | |
tree | e175e61770eed86fd4fff263aa6a1740e1e342cf /src/test | |
parent | c8a05d8f59f131312b078aca5726a194a45bafa5 (diff) | |
download | jackcess-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.java | 17 |
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;'\"", |