WOOO compiles all in one file! Dependencies resolved! Next up, C name mangeling for scoping
This commit is contained in:
15
tests/runTests-ninja.sh
Normal file
15
tests/runTests-ninja.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
krakenPath="../build-ninja/kraken"
|
||||
#testDir=${1:-"../tests"}
|
||||
testDir="."
|
||||
ext=${2:-"krak"}
|
||||
|
||||
fileList=""
|
||||
for dir in `find ${testDir} -type f -name "test_*.${ext}"`; do
|
||||
filename=$(basename ${dir})
|
||||
filename="${filename%.*}"
|
||||
fileList+=\ $testDir\/$filename
|
||||
done
|
||||
|
||||
${krakenPath} "--test" ${fileList}
|
||||
1
tests/test_string.expected_results
Normal file
1
tests/test_string.expected_results
Normal file
@@ -0,0 +1 @@
|
||||
hello strings
|
||||
10
tests/test_string.krak
Normal file
10
tests/test_string.krak
Normal file
@@ -0,0 +1,10 @@
|
||||
import io;
|
||||
import string;
|
||||
|
||||
|
||||
|int| main() {
|
||||
|string::string| str.construct("hello strings");
|
||||
io::println(str);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
4
|
||||
1337
|
||||
Destroyed!
|
||||
|
||||
@@ -14,6 +14,7 @@ typedef AbleToBeDestroyed (Destructable) {
|
||||
intVec.addEnd(3);
|
||||
intVec.addEnd(3);
|
||||
intVec.addEnd(7);
|
||||
println(intVec.size);
|
||||
for (|int| i = 0; i < intVec.size; i++;)
|
||||
print(intVec.at(i));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user