mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@6338 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
a80115854b
commit
0207fe5702
3 changed files with 34 additions and 0 deletions
21
upptst/ScalarDate/ScalarDate.cpp
Normal file
21
upptst/ScalarDate/ScalarDate.cpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#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);
|
||||
}
|
||||
}
|
||||
9
upptst/ScalarDate/ScalarDate.upp
Normal file
9
upptst/ScalarDate/ScalarDate.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
Core;
|
||||
|
||||
file
|
||||
ScalarDate.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "SSE2";
|
||||
|
||||
4
upptst/ScalarDate/init
Normal file
4
upptst/ScalarDate/init
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef _ScalarDate_icpp_init_stub
|
||||
#define _ScalarDate_icpp_init_stub
|
||||
#include "Core/init"
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue