Logo
Explore Help
Sign In
miloignis/kraken
1
0
Fork 0
You've already forked kraken
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
63d9ec66e18b499487adeb691e78ff69f4625dae
kraken/tests/simpleObjectTest.krak

19 lines
230 B
Plaintext
Raw Normal View History

Added testing! call kraken like so ./kraken --test ../path/to/test/name_of_test_without_extention This will make kraken compile and run name_of_test_without_extention.krak and compare the output it generates on stdout to name_of_test_without_extention.expected_results. If they pass, then it records the pass, if not, it records the failure and saves the intermediate files generated. It has revealed some bugs which I will fix in upcoming commits.
2014-05-20 22:21:07 -04:00
import io;
typedef FirstObject {
int objectNum;
void PrintSelf(int a) {
print(objectNum);
print(a);
}
};
int main() {
FirstObject wooObject;
wooObject.objectNum = 5;
wooObject.PrintSelf(7);
print("\n");
return 0;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 31ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API