aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-02-19 13:45:23 -0600
committerGitHub <noreply@github.com>2019-02-19 13:45:23 -0600
commit4fb12b493edaae62a3b6fd5320e526ae7cc9542e (patch)
tree1b45f9ae88c873e581013cc6d199d13d0b70e057 /test-suite/tests
parent56f9afb4d2abdf38ed3caf9f819ac8bacc290940 (diff)
parent8fce90e9cd4be4cbb12b66fedb2de72a73214f15 (diff)
downloadmilf-rs-4fb12b493edaae62a3b6fd5320e526ae7cc9542e.tar.gz
milf-rs-4fb12b493edaae62a3b6fd5320e526ae7cc9542e.zip
Merge pull request #290 from ehuss/fix-case-sensitivity
Fix case sensitivity with T, Z, and E.
Diffstat (limited to 'test-suite/tests')
-rw-r--r--test-suite/tests/datetime.rs2
-rw-r--r--test-suite/tests/parser.rs1
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);