diff options
author | Eric Huss <eric@huss.org> | 2019-02-19 10:59:42 -0800 |
---|---|---|
committer | Eric Huss <eric@huss.org> | 2019-02-19 10:59:42 -0800 |
commit | 8fce90e9cd4be4cbb12b66fedb2de72a73214f15 (patch) | |
tree | 1b45f9ae88c873e581013cc6d199d13d0b70e057 /test-suite/tests | |
parent | 56f9afb4d2abdf38ed3caf9f819ac8bacc290940 (diff) | |
download | milf-rs-8fce90e9cd4be4cbb12b66fedb2de72a73214f15.tar.gz milf-rs-8fce90e9cd4be4cbb12b66fedb2de72a73214f15.zip |
Fix case sensitivity with T, Z, and E.
Diffstat (limited to 'test-suite/tests')
-rw-r--r-- | test-suite/tests/datetime.rs | 2 | ||||
-rw-r--r-- | test-suite/tests/parser.rs | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/test-suite/tests/datetime.rs b/test-suite/tests/datetime.rs index a0064fb..d6128b0 100644 --- a/test-suite/tests/datetime.rs +++ b/test-suite/tests/datetime.rs @@ -14,6 +14,8 @@ fn times() { fn good(s: &str) { dogood(s, s); dogood(&s.replace("T", " "), s); + dogood(&s.replace("T", "t"), s); + dogood(&s.replace("Z", "z"), s); } good("1997-09-09T09:09:09Z"); diff --git a/test-suite/tests/parser.rs b/test-suite/tests/parser.rs index 2534ce6..69b491d 100644 --- a/test-suite/tests/parser.rs +++ b/test-suite/tests/parser.rs @@ -227,6 +227,7 @@ fn floats() { t!("1.0e0", 1.0); t!("1.0e+0", 1.0); t!("1.0e-0", 1.0); + t!("1E-0", 1.0); t!("1.001e-0", 1.001); t!("2e10", 2e10); t!("2e+10", 2e10); |