ultimatepp/autotest/ScalarDate/ScalarDate.cpp
cxl 6d3aa8ba61 Creating the *real* autotest nest
git-svn-id: svn://ultimatepp.org/upp/trunk@7141 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-04-02 18:36:01 +00:00

21 lines
279 B
C++

#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
Date d;
d.Set(Null);
ASSERT(IsNull(d));
d.Set(0);
ASSERT(d == Date(0, 1, 1));
for(int i = 0; i < 800000; i++) {
d.Set(i);
Date d1 = d;
d.Set(d.Get());
ASSERT(d1 == d);
}
}