mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@10505 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
453ec91af4
commit
64f5ff231d
1 changed files with 10 additions and 0 deletions
|
|
@ -17,6 +17,16 @@ CONSOLE_APP_MAIN {
|
|||
ASSERT(d2-- == d + 1);
|
||||
ASSERT(d2 == d);
|
||||
}
|
||||
|
||||
ASSERT(GetMonths(Date(2013, 2, 5), Date(2013, 3, 4)) == 0);
|
||||
ASSERT(GetMonths(Date(2013, 2, 5), Date(2013, 3, 5)) == 1);
|
||||
ASSERT(GetMonths(Date(2013, 8, 31), Date(2013, 9, 30)) == 0);
|
||||
ASSERT(GetMonths(Date(2013, 8, 31), Date(2013, 10, 1)) == 1);
|
||||
|
||||
ASSERT(GetMonthsP(Date(2016, 1, 1), Date(2016, 1, 1)) == 0);
|
||||
ASSERT(GetMonthsP(Date(2016, 1, 1), Date(2016, 1, 2)) == 1); // partial
|
||||
ASSERT(GetMonthsP(Date(2016, 1, 1), Date(2016, 2, 1)) == 1); // exact one
|
||||
ASSERT(GetMonthsP(Date(2016, 1, 1), Date(2016, 2, 2)) == 2); // partial 2nd
|
||||
|
||||
LOG("=========== OK");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue