Differences From Artifact [5cef40bce7835081]:
- File
main.d
- 2010-11-07 15:03:38 - part of checkin [820e7198cc] on branch trunk - Made helloworld work. (user: kinaba) [annotate]
To Artifact [36044e05d28ff416]:
- File
main.d
- 2010-11-08 11:45:45 - part of checkin [b11090f441] on branch trunk - Pretty Printing of unittest success (user: kinaba) [annotate]
4 * 4 *
5 * Entry point for Polemy interpreter. 5 * Entry point for Polemy interpreter.
6 */ 6 */
7 7
8 import std.stdio; 8 import std.stdio;
9 import polemy.eval; 9 import polemy.eval;
10 10
11 version(unittest) <
12 static ~this() { readln(); } // workaround for enabling "pause" under Po <
13 <
14 void main() | 11 void main( string[] args )
15 { 12 {
> 13 version(unittest)
> 14 {
16 writeln( "test ok" ); | 15 writeln( "***********************" );
> 16 writeln( "* All Tests Passed <3 *" );
> 17 writeln( "*********************** (Press Enter to finish)" );
> 18 readln();
> 19 return;
> 20 }
17 } 21 }