Skip to content

Commit

Permalink
[backend] add datetime.dayOfWeek test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenVoich committed Nov 18, 2023
1 parent dba52eb commit 813c411
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/datetime.test.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import DateComponents "mo:datetime/Components";
import Debug "mo:base/Debug";
import Iter "mo:base/Iter";
import {test} "mo:test";

test("dayOfWeek", func() {
for (i in Iter.range(1, 30)) {
let components = {
year = 2_023;
month = 11;
day = i;
hour = 0;
minute = 0;
nanosecond = 0;
};
Debug.print(debug_show(DateComponents.dayOfWeek(components)));
};
});

0 comments on commit 813c411

Please sign in to comment.