Remove trailing newlines from Hello World examples

This commit is contained in:
Jan Van Bruggen 2022-02-27 19:34:47 -07:00
parent 6ea8df5e16
commit 9f68194436
5 changed files with 9 additions and 9 deletions

View File

@ -329,7 +329,7 @@ mod cli_run {
executable_filename: "hello_c",
stdin: &[],
input_file: None,
expected_ending:"Hello, World!\n",
expected_ending:"Hello, World!",
use_valgrind: true,
},
hello_zig:"hello-world" => Example {
@ -337,7 +337,7 @@ mod cli_run {
executable_filename: "hello_zig",
stdin: &[],
input_file: None,
expected_ending:"Hello, World!\n",
expected_ending:"Hello, World!",
use_valgrind: true,
},
hello_rust:"hello-world" => Example {
@ -345,7 +345,7 @@ mod cli_run {
executable_filename: "hello_rust",
stdin: &[],
input_file: None,
expected_ending:"Hello, World!\n",
expected_ending:"Hello, World!",
use_valgrind: true,
},
hello_swift:"hello-world" => Example {
@ -353,7 +353,7 @@ mod cli_run {
executable_filename: "hello_swift",
stdin: &[],
input_file: None,
expected_ending:"Hello Swift, meet Roc\n",
expected_ending:"Hello, World!",
use_valgrind: true,
},
hello_web:"hello-world" => Example {
@ -361,7 +361,7 @@ mod cli_run {
executable_filename: "hello_web",
stdin: &[],
input_file: None,
expected_ending:"Hello, World!\n",
expected_ending:"Hello, World!",
use_valgrind: true,
},
fib:"fib" => Example {

View File

@ -3,4 +3,4 @@ app "hello_c"
imports []
provides [ main ] to pf
main = "Hello, World!\n"
main = "Hello, World!"

View File

@ -7,6 +7,6 @@ greeting =
hi = "Hello"
name = "World"
"\(hi), \(name)!\n"
"\(hi), \(name)!"
main = greeting

View File

@ -53,6 +53,6 @@ extension RocStr {
@_cdecl("main")
func main() -> UInt8 {
print(roc__mainForHost_1_exposed().string)
print(roc__mainForHost_1_exposed().string, terminator: "")
return 0
}

View File

@ -97,7 +97,7 @@ pub fn main() u8 {
std.os.clock_gettime(std.os.CLOCK_REALTIME, &ts2) catch unreachable;
// stdout the result
stdout.print("{s}\n", .{callresult.asSlice()}) catch unreachable;
stdout.print("{s}", .{callresult.asSlice()}) catch unreachable;
callresult.deinit();