From 8fce90e9cd4be4cbb12b66fedb2de72a73214f15 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 19 Feb 2019 10:59:42 -0800 Subject: Fix case sensitivity with T, Z, and E. --- test-suite/tests/datetime.rs | 2 ++ test-suite/tests/parser.rs | 1 + 2 files changed, 3 insertions(+) (limited to 'test-suite') 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); -- cgit v1.2.3