Mercurial > projects > dstress
annotate run/__TIMESTAMP__01.d @ 303:1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
author | thomask |
---|---|
date | Sat, 12 Mar 2005 13:49:58 +0000 |
parents | |
children |
rev | line source |
---|---|
303
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
2 // $Date$ |
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
3 // $Author$ |
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
4 |
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
5 module dstress.run.__TIMESTAMP__01; |
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
6 |
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
7 int main(){ |
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
8 assert(__TIMESTAMP__.length==24); |
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
9 assert(__TIMESTAMP__[3]==' '); |
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
10 assert(__TIMESTAMP__[7]==' '); |
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
11 assert(__TIMESTAMP__[10]==' '); |
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
12 assert(__TIMESTAMP__[19]==' '); |
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
13 return 0; |
1013f6410987
added __DATE__, __FILE__, __LINE__, __TIMESTAMP__ and __TIME tests
thomask
parents:
diff
changeset
|
14 } |