diff options
author | Douglas Christman <DouglasChristman@gmail.com> | 2016-11-24 15:51:07 -0500 |
---|---|---|
committer | Douglas Christman <DouglasChristman@gmail.com> | 2016-11-24 18:22:08 -0500 |
commit | 36ff0c979258844ca8a200f49d434997299416e6 (patch) | |
tree | 479f4dd89499344aa4532dab43b52b26d84969e9 /src/test | |
parent | 3215e35c405278491f55fb486d349f132e93f516 (diff) |
calendarspec: allow whole second ranges
Previously a string like "00:00:01..03" would fail to parse due to the
ambiguity between a decimal point and the start of a range.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-calendarspec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test-calendarspec.c b/src/test/test-calendarspec.c index d4bb4a1707..0bb29af545 100644 --- a/src/test/test-calendarspec.c +++ b/src/test/test-calendarspec.c @@ -177,6 +177,7 @@ int main(int argc, char* argv[]) { test_one("1..3-1..3 1..3:1..3", "*-01,02,03-01,02,03 01,02,03:01,02,03:00"); test_one("00:00:1.125..2.125", "*-*-* 00:00:01.125000,02.125000"); test_one("00:00:1.0..3.8", "*-*-* 00:00:01,02,03"); + test_one("00:00:01..03", "*-*-* 00:00:01,02,03"); test_one("*-*~1 Utc", "*-*~01 00:00:00 UTC"); test_one("*-*~05,3 ", "*-*~03,05 00:00:00"); test_one("*-*~* 00:00:00", "*-*-* 00:00:00"); |