X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=tests%2Farrays2.qc;h=9f0dd10c11a9e542d0e50cda5b2793d7b4037299;hp=fc8bdf578219399a085838702f8d966a253d1b18;hb=161bbec262545b883c983e1810c942116a3bebdc;hpb=b30368f026e4e1bf27e5beb943d693dbd2268457 diff --git a/tests/arrays2.qc b/tests/arrays2.qc index fc8bdf5..9f0dd10 100644 --- a/tests/arrays2.qc +++ b/tests/arrays2.qc @@ -1,6 +1,6 @@ float glob1[7] = { 10, 20, 30, 40, 50, 60, 70 }; float glob2[7] = { 100, 200, 300, 400, 500, 600 }; -float globs[] = { 1, 2, 3 }; +string globs[] = { "Hello ", "World" }; void main() { float i; @@ -14,8 +14,5 @@ void main() { print(" ", ftos(glob2[i])); print("\n"); - print(ftos(globs[0])); - for (i = 1; i != 3; ++i) - print(" ", ftos(globs[i])); - print("\n"); + print(globs[0], globs[1], "\n"); }