Reword "web" example things to "web assembly"

This commit is contained in:
Jan Van Bruggen 2022-06-20 23:57:24 -06:00
parent 8f440f0b5a
commit 8cf3bee728
9 changed files with 9 additions and 9 deletions

View File

@ -309,7 +309,7 @@ mod cli_run {
return;
}
}
"rocLovesWeb" => {
"rocLovesWebAssembly" => {
// this is a web assembly example, but we don't test with JS at the moment
eprintln!("WARNING: skipping testing example {} because the test is broken right now!", example.filename);
return;
@ -422,12 +422,12 @@ mod cli_run {
expected_ending:"Roc <3 Swift!\n",
use_valgrind: true,
},
platformSwitchingWeb:"platform-switching/web-platform" => Example {
platformSwitchingWebAssembly:"platform-switching/web-assembly-platform" => Example {
filename: "main.roc",
executable_filename: "rocLovesWeb",
executable_filename: "rocLovesWebAssembly",
stdin: &[],
input_file: None,
expected_ending:"Roc <3 Web!\n",
expected_ending:"Roc <3 Web Assembly!\n",
use_valgrind: true,
},
platformSwitchingZig:"platform-switching/zig-platform" => Example {
@ -817,7 +817,7 @@ mod cli_run {
"c-platform",
"rust-platform",
"swift-platform",
"web-platform",
"web-assembly-platform",
"zig-platform",
] {
all_examples.remove(format!("{}/{}", example_dir_name, sub_dir).as_str()).unwrap_or_else(|| {

View File

@ -3,7 +3,7 @@ app "rocLovesPlatforms"
# To switch platforms, comment-out the line above and un-comment one below.
# packages { pf: "rust-platform/main.roc" }
# packages { pf: "swift-platform/main.roc" }
# packages { pf: "web-platform/main.roc" } # See ./web-platform/README.md
# packages { pf: "web-assembly-platform/main.roc" } # See ./web-assembly-platform/README.md
# packages { pf: "zig-platform/main.roc" }
imports []
provides [main] to pf

View File

@ -1,4 +1,4 @@
platform "echo-in-web"
platform "echo-in-web-assembly"
requires {} { main : Str }
exposes []
packages {}

View File

@ -1,6 +1,6 @@
app "rocLovesWeb"
app "rocLovesWebAssembly"
packages { pf: "main.roc" }
imports []
provides [main] to pf
main = "Roc <3 Web!\n"
main = "Roc <3 Web Assembly!\n"