mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
Collapse the break tests into 1
This commit is contained in:
parent
fed86b73fd
commit
0500181327
6 changed files with 17 additions and 25 deletions
|
@ -1,6 +0,0 @@
|
|||
I: break.qc
|
||||
D: test break and continue - case 1
|
||||
T: -execute
|
||||
C: -std=fteqcc
|
||||
E: -float -1 -float -1
|
||||
M: 0 1 2 3 4 5 6 7 8 9 end
|
|
@ -1,6 +0,0 @@
|
|||
I: break.qc
|
||||
D: test break and continue - case 2
|
||||
T: -execute
|
||||
C: -std=fteqcc
|
||||
E: -float 3 -float -1
|
||||
M: 0 1 2 3 brk end
|
|
@ -1,6 +0,0 @@
|
|||
I: break.qc
|
||||
D: test break and continue - case 3
|
||||
T: -execute
|
||||
C: -std=fteqcc
|
||||
E: -float -1 -float 3
|
||||
M: 0 1 2 ct 4 5 6 7 8 9 end
|
|
@ -1,6 +0,0 @@
|
|||
I: break.qc
|
||||
D: test break and continue - case 4
|
||||
T: -execute
|
||||
C: -std=fteqcc
|
||||
E: -float 5 -float 2
|
||||
M: 0 1 ct 3 4 5 brk end
|
|
@ -1,7 +1,7 @@
|
|||
void print(...) = #1;
|
||||
string ftos (float) = #2;
|
||||
|
||||
void main(float brkat, float contat) {
|
||||
void test(float brkat, float contat) {
|
||||
float i;
|
||||
|
||||
for (i = 0; i < 10; i += 1) {
|
||||
|
@ -17,3 +17,10 @@ void main(float brkat, float contat) {
|
|||
}
|
||||
print("end\n");
|
||||
}
|
||||
|
||||
void main() {
|
||||
test(-1, -1);
|
||||
test( 3, -1);
|
||||
test(-1, 3);
|
||||
test( 5, 2);
|
||||
}
|
||||
|
|
9
tests/break.tmpl
Normal file
9
tests/break.tmpl
Normal file
|
@ -0,0 +1,9 @@
|
|||
I: break.qc
|
||||
D: test break and continue
|
||||
T: -execute
|
||||
C: -std=fteqcc
|
||||
E: -float -1 -float -1
|
||||
M: 0 1 2 3 4 5 6 7 8 9 end
|
||||
M: 0 1 2 3 brk end
|
||||
M: 0 1 2 ct 4 5 6 7 8 9 end
|
||||
M: 0 1 ct 3 4 5 brk end
|
Loading…
Reference in a new issue