mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tests: Added 'w' dateformat test
This commit is contained in:
parent
af8434b845
commit
091122350c
1 changed files with 3 additions and 2 deletions
|
@ -72,9 +72,9 @@ void testParse (
|
||||||
int main (int, char**)
|
int main (int, char**)
|
||||||
{
|
{
|
||||||
#ifdef PRODUCT_TASKWARRIOR
|
#ifdef PRODUCT_TASKWARRIOR
|
||||||
UnitTest t (1025);
|
UnitTest t (1026);
|
||||||
#else
|
#else
|
||||||
UnitTest t (996);
|
UnitTest t (997);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ISO8601d iso;
|
ISO8601d iso;
|
||||||
|
@ -657,6 +657,7 @@ int main (int, char**)
|
||||||
t.is (r32.toString ("v"), "44", "2015-10-28T12:55:00 -> v -> 44");
|
t.is (r32.toString ("v"), "44", "2015-10-28T12:55:00 -> v -> 44");
|
||||||
t.is (r32.toString ("J"), "301", "2015-10-28T12:55:00 -> J -> 301");
|
t.is (r32.toString ("J"), "301", "2015-10-28T12:55:00 -> J -> 301");
|
||||||
t.is (r32.toString ("j"), "301", "2015-10-28T12:55:00 -> j -> 301");
|
t.is (r32.toString ("j"), "301", "2015-10-28T12:55:00 -> j -> 301");
|
||||||
|
t.is (r32.toString ("w"), "3", "2015-10-28T12:55:00 -> w -> 3");
|
||||||
|
|
||||||
// Test all parse options.
|
// Test all parse options.
|
||||||
ISO8601d r33 ("2015 10 28 19 28 01", "Y M D H N S");
|
ISO8601d r33 ("2015 10 28 19 28 01", "Y M D H N S");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue