Made a test_runner in Kraken to run the tests on Kalypso, and moved to_import.krak to simple_print.krak and ported one function over to use it instead, so that Kalypso testing can get started before implementing everything needed to use io.krak
This commit is contained in:
20
tests/simple_print.krak
Normal file
20
tests/simple_print.krak
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
fun println(to_print: *char) {
|
||||
print(to_print)
|
||||
print("\n")
|
||||
}
|
||||
fun println(to_print: int) {
|
||||
print(to_print)
|
||||
print("\n")
|
||||
}
|
||||
fun print(to_print: *char) {
|
||||
__if_comp__ __C__ simple_passthrough(to_print::) """
|
||||
printf("%s", to_print);
|
||||
"""
|
||||
}
|
||||
fun print(to_print: int) {
|
||||
__if_comp__ __C__ simple_passthrough(to_print::) """
|
||||
printf("%d", to_print);
|
||||
"""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user