diff options
| author | historia <gravel.justness270@slmail.me> | 2024-08-04 04:16:20 -0400 |
|---|---|---|
| committer | historia <gravel.justness270@slmail.me> | 2024-08-04 04:16:20 -0400 |
| commit | 0a87208f4cad82cfe7dd33c7fbcbcd7cc0d1e219 (patch) | |
| tree | b2c7b4ae5a21392f9cffe90256775bad7c832eac /tests/tconditions.nim | |
| parent | 4e0d54d5cb8d6fdd96bf8d1cd054554bb954611b (diff) | |
| download | soon-0a87208f4cad82cfe7dd33c7fbcbcd7cc0d1e219.tar.gz | |
Fixing gitignore
Diffstat (limited to 'tests/tconditions.nim')
| -rw-r--r-- | tests/tconditions.nim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/tconditions.nim b/tests/tconditions.nim new file mode 100644 index 0000000..4732546 --- /dev/null +++ b/tests/tconditions.nim @@ -0,0 +1,16 @@ +import then/conditions +import std/[unittest] +import std/[times] + +let date1 = dateTime(2025, mJan, 01, 00, 00, 00, 00, utc()) +let date2 = dateTime(2025, mJan, 01, 00, 00, 00, 00, local()) +let date3 = dateTime(2025, mDec, 31, 00, 00, 00, 00, utc()) +let date4 = dateTime(2024, mFeb, 29, 00, 00, 00, 00, local()) +let date5 = dateTime(0001, mJan, 01, 00, 00, 00, 00, local()) +let date6 = dateTime(9999, mDec, 31, 00, 00, 00, 00, local()) + + +test "Time (always true)": + check checkCond("00:00", date1) == true + check checkCond("23:59", date2) == true + check checkCond("25:00", date3) == true |
