]> de.git.xonotic.org Git - voretournament/voretournament.git/blob - data/qcsrc/server-testcase/framework.qc
Initial checkout of Vore Tournament 0.1.alpha.
[voretournament/voretournament.git] / data / qcsrc / server-testcase / framework.qc
1 void dprint(string s, ...) = #25;
2 string ftos(float f) = #26;
3 string vtos(vector v) = #27;
4 void error(string e) = #10;
5 float test();
6
7 void spawnfunc_worldspawn()
8 {
9         float r;
10         dprint("TESTCASE: START\n");
11         r = test();
12         if(r == 1)
13                 error("TESTCASE: PASS"); 
14         else if(r == 0)
15                 error("TESTCASE: FAIL"); 
16         else
17                 error("TESTCASE: INVALID"); 
18 }