diff --git a/tests/programs/helloworld.alpha b/tests/programs/helloworld.alpha index 109cae8..c889222 100644 --- a/tests/programs/helloworld.alpha +++ b/tests/programs/helloworld.alpha @@ -1,11 +1,23 @@ #include "std.alpha" -entry (arg) := { - [string: str; character: ch; integer: result] +function entry: string2integer - ch := 'h'; - str := "Hello World!"; - result := printCharacter(ch); +entry (arg) := { + [integer: result] + + result := printCharacter('H'); + result := printCharacter('e'); + result := printCharacter('l'); + result := printCharacter('l'); + result := printCharacter('o'); + result := printCharacter(' '); + result := printCharacter('W'); + result := printCharacter('o'); + result := printCharacter('r'); + result := printCharacter('l'); + result := printCharacter('d'); + result := printCharacter('!'); + result := printCharacter('\n'); return 0; } \ No newline at end of file