From 7f0009843b2b20de13b65d1edd5118229b732b89 Mon Sep 17 00:00:00 2001 From: Zhiwei Date: Wed, 6 Nov 2024 10:31:26 -0500 Subject: [PATCH] fix(cli): not to show 1 test when no tests are in the file (#7205) This is to fix an issue that caused `wing test` against an empty `some_file_name.w` file shows `Tests 1 passed (1)`. See the issue #5852 for details. Solution: Instead of adding a dummy pass message, the function now returns early with a predefined message when there's no test case to avoid confusion later. And I don't think it would need full E2E tests? I am still exploring how to add test for this new test system behavior. Will mark the PR as ready after adding/updating test for it. ## Checklist - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted) - [x] Description explains motivation and solution - [x] Tests added (always) - [x] Added `pr/e2e-full` label if this feature requires end-to-end testing *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*. Resolves #5852 --- .../test/__snapshots__/test.test.ts.snap | 2 + .../winglang/src/commands/test/test.test.ts | 19 ++++++++-- packages/winglang/src/commands/test/test.ts | 17 ++------- .../main.w | 4 -- .../main.w | 9 ----- .../main.w | 4 -- .../main.w | 4 -- .../main.w | 9 ----- .../valid/03-functions.md_example_1/main.w | 6 --- .../main.w | 2 +- .../main.w | 2 +- .../main.w | 2 +- .../main.w | 2 +- .../04-flow-controls.md_example_1/main.w | 22 ----------- .../04-flow-controls.md_example_2/main.w | 16 -------- .../04-flow-controls.md_example_3/main.w | 23 ------------ .../04-flow-controls.md_example_4/main.w | 28 -------------- .../valid/05-optionality.md_example_1/main.w | 4 -- .../valid/06-json.md_example_1/main.w | 23 ------------ .../valid/07-structs.md_example_1/main.w | 10 ----- .../valid/07-structs.md_example_2/main.w | 12 ------ .../valid/07-structs.md_example_3/main.w | 21 ----------- .../valid/07-structs.md_example_4/main.w | 17 --------- .../valid/08-classes.md_example_4/main.w | 32 ---------------- .../main.w | 2 +- .../main.w | 2 +- .../main.w | 2 +- .../main.w | 2 +- .../main.w | 2 +- .../valid/12-structs.md_example_1/main.w | 6 +-- .../main.w | 7 +++- .../valid/14-functions.md_example_1/main.w | 2 +- .../main.w | 3 +- .../main.w | 2 +- .../main.w | 7 +++- .../main.w | 7 +++- .../main.w | 2 +- .../main.w | 2 +- .../valid/23-Json.md_example_1/main.w | 37 ++----------------- .../main.w | 2 +- .../valid/23-Json.md_example_2/main.w | 23 ++++++++++++ .../main.w | 2 +- .../main.w | 2 +- .../main.w | 2 +- .../main.w | 2 +- .../main.w | 2 +- .../main.w | 2 +- .../main.w | 2 +- .../main.w | 2 +- .../main.w | 2 +- .../main.w | 2 +- .../valid/37-duration.md_example_1/main.w | 19 ++++++++++ .../sdk_tests/bucket/cors.test.w_test_sim.md | 2 +- .../build-failure.test.w_test_sim.md | 2 +- .../container/pull-failure.test.w_test_sim.md | 2 +- .../function/aws-layer.test.w_test_sim.md | 2 +- .../queue/retention_period.main.w_test_sim.md | 2 +- .../schedule/init.test.w_test_sim.md | 2 +- .../secret/secret-ref.test.w_test_sim.md | 2 +- .../sdk_tests/ui/section.test.w_test_sim.md | 2 +- .../valid/api_valid_path.test.w_test_sim.md | 2 +- .../test_corpus/valid/app.test.w_test_sim.md | 2 +- ...icit_await_in_functions.test.w_test_sim.md | 2 +- .../valid/bring_alias.test.w_test_sim.md | 2 +- .../valid/bring_awscdk.test.w_test_sim.md | 2 +- .../valid/bring_cdk8s.test.w_test_sim.md | 2 +- .../valid/bring_cdktf.test.w_test_sim.md | 2 +- .../bring_extend_non_entry.test.w_test_sim.md | 2 +- .../valid/bring_local_dir.test.w_test_sim.md | 2 +- ...ing_local_normalization.test.w_test_sim.md | 2 +- .../valid/bring_projen.test.w_test_sim.md | 2 +- .../valid/bypass_return.test.w_test_sim.md | 2 +- .../capture_primitives.test.w_test_sim.md | 2 +- .../valid/captures.test.w_test_sim.md | 2 +- .../valid/casting.test.w_test_sim.md | 2 +- .../valid/construct-base.test.w_test_sim.md | 2 +- .../valid/container_types.test.w_test_sim.md | 2 +- .../valid/custom_obj_id.test.w_test_sim.md | 2 +- ...ssions_binary_operators.test.w_test_sim.md | 2 +- .../valid/file_counter.test.w_test_sim.md | 2 +- .../valid/for_loop.test.w_test_sim.md | 2 +- .../valid/forward_decl.test.w_test_sim.md | 2 +- ...tion_optional_arguments.test.w_test_sim.md | 2 +- .../valid/function_type.test.w_test_sim.md | 2 +- ...tion_variadic_arguments.test.w_test_sim.md | 2 +- .../valid/hello.test.w_test_sim.md | 2 +- .../identical_inflights.test.w_test_sim.md | 2 +- .../valid/implicit_std.test.w_test_sim.md | 2 +- .../in_scope_construct.test.w_test_sim.md | 2 +- .../valid/indexing.test.w_test_sim.md | 2 +- .../valid/inference.test.w_test_sim.md | 2 +- .../inflight-subscribers.test.w_test_sim.md | 2 +- ...nflight_class_modifiers.test.w_test_sim.md | 2 +- ...nside_preflight_closure.test.w_test_sim.md | 2 +- .../valid/inflight_concat.test.w_test_sim.md | 2 +- ...ritance_class_preflight.test.w_test_sim.md | 2 +- .../inheritance_interface.test.w_test_sim.md | 2 +- .../valid/interface.test.w_test_sim.md | 2 +- .../valid/intrinsics.test.w_test_sim.md | 2 +- .../valid/json-types.test.w_test_sim.md | 2 +- .../test_corpus/valid/json.test.w_test_sim.md | 2 +- ...on_string_interpolation.test.w_test_sim.md | 2 +- .../mut_container_types.test.w_test_sim.md | 2 +- ...aced-expr-in-index-expr.test.w_test_sim.md | 2 +- .../valid/new_jsii.test.w_test_sim.md | 2 +- .../nested/parameters.test.w_test_sim.md | 2 +- .../simple/parameters.test.w_test_sim.md | 2 +- .../primitive_methods.test.w_test_sim.md | 2 +- .../valid/reassignment.test.w_test_sim.md | 2 +- .../valid/service.test.w_test_sim.md | 2 +- .../valid/sim_resource.test.w_test_sim.md | 2 +- ...s_variable_declarations.test.w_test_sim.md | 2 +- .../valid/std_containers.test.w_test_sim.md | 2 +- .../valid/stringify.test.w_test_sim.md | 2 +- .../valid/to_inflight.test.w_test_sim.md | 2 +- .../valid/try_catch.test.w_test_sim.md | 2 +- ...hod_inside_init_closure.test.w_test_sim.md | 2 +- .../valid/while.test.w_test_sim.md | 2 +- .../valid/while_loop_await.test.w_test_sim.md | 2 +- 119 files changed, 179 insertions(+), 394 deletions(-) delete mode 100644 tests/doc_examples/invalid/01-variable-declaration.md_example_1/main.w delete mode 100644 tests/doc_examples/invalid/01-variable-declaration.md_example_4/main.w delete mode 100644 tests/doc_examples/valid/01-variable-declaration.md_example_2/main.w delete mode 100644 tests/doc_examples/valid/01-variable-declaration.md_example_3/main.w delete mode 100644 tests/doc_examples/valid/01-variable-declaration.md_example_5/main.w delete mode 100644 tests/doc_examples/valid/03-functions.md_example_1/main.w rename tests/doc_examples/valid/{02-primitives.md_example_1 => 03-values.md_example_1}/main.w (78%) rename tests/doc_examples/valid/{02-primitives.md_example_2 => 03-values.md_example_2}/main.w (87%) rename tests/doc_examples/valid/{02-primitives.md_example_3 => 03-values.md_example_3}/main.w (82%) rename tests/doc_examples/valid/{02-primitives.md_example_4 => 03-values.md_example_4}/main.w (62%) delete mode 100644 tests/doc_examples/valid/04-flow-controls.md_example_1/main.w delete mode 100644 tests/doc_examples/valid/04-flow-controls.md_example_2/main.w delete mode 100644 tests/doc_examples/valid/04-flow-controls.md_example_3/main.w delete mode 100644 tests/doc_examples/valid/04-flow-controls.md_example_4/main.w delete mode 100644 tests/doc_examples/valid/05-optionality.md_example_1/main.w delete mode 100644 tests/doc_examples/valid/06-json.md_example_1/main.w delete mode 100644 tests/doc_examples/valid/07-structs.md_example_1/main.w delete mode 100644 tests/doc_examples/valid/07-structs.md_example_2/main.w delete mode 100644 tests/doc_examples/valid/07-structs.md_example_3/main.w delete mode 100644 tests/doc_examples/valid/07-structs.md_example_4/main.w delete mode 100644 tests/doc_examples/valid/08-classes.md_example_4/main.w rename tests/doc_examples/valid/{05-optionality.md_example_2 => 08-optionality.md_example_1}/main.w (73%) rename tests/doc_examples/valid/{05-optionality.md_example_3 => 08-optionality.md_example_2}/main.w (83%) rename tests/doc_examples/valid/{05-optionality.md_example_4 => 08-optionality.md_example_3}/main.w (67%) rename tests/doc_examples/valid/{05-optionality.md_example_5 => 08-optionality.md_example_4}/main.w (80%) rename tests/doc_examples/valid/{05-optionality.md_example_6 => 08-optionality.md_example_5}/main.w (75%) rename tests/doc_examples/valid/{03-functions.md_example_3 => 12-structs.md_example_2}/main.w (64%) rename tests/doc_examples/valid/{03-functions.md_example_2 => 14-functions.md_example_2}/main.w (84%) rename tests/doc_examples/valid/{15-variadic-functions.md_example_1 => 14-variadic-functions.md_example_1}/main.w (86%) rename tests/doc_examples/valid/{08-classes.md_example_1 => 15-classes.md_example_1}/main.w (67%) rename tests/doc_examples/valid/{08-classes.md_example_2 => 15-classes.md_example_2}/main.w (60%) rename tests/doc_examples/valid/{08-classes.md_example_3 => 15-classes.md_example_3}/main.w (89%) rename tests/doc_examples/valid/{14-singletons.md_example_1 => 15-singletons.md_example_1}/main.w (84%) rename tests/doc_examples/valid/{06-json.md_example_9 => 23-Json.md_example_10}/main.w (65%) create mode 100644 tests/doc_examples/valid/23-Json.md_example_2/main.w rename tests/doc_examples/valid/{06-json.md_example_2 => 23-Json.md_example_3}/main.w (79%) rename tests/doc_examples/valid/{06-json.md_example_3 => 23-Json.md_example_4}/main.w (68%) rename tests/doc_examples/valid/{06-json.md_example_4 => 23-Json.md_example_5}/main.w (64%) rename tests/doc_examples/valid/{06-json.md_example_5 => 23-Json.md_example_6}/main.w (63%) rename tests/doc_examples/valid/{06-json.md_example_6 => 23-Json.md_example_7}/main.w (54%) rename tests/doc_examples/valid/{06-json.md_example_7 => 23-Json.md_example_8}/main.w (53%) rename tests/doc_examples/valid/{06-json.md_example_8 => 23-Json.md_example_9}/main.w (54%) rename tests/doc_examples/valid/{13-api-gateway.md_example_1 => 34-http-server.md_example_2}/main.w (89%) rename tests/doc_examples/valid/{13-api-gateway.md_example_2 => 34-http-server.md_example_3}/main.w (82%) rename tests/doc_examples/valid/{13-api-gateway.md_example_3 => 34-http-server.md_example_4}/main.w (84%) create mode 100644 tests/doc_examples/valid/37-duration.md_example_1/main.w diff --git a/packages/winglang/src/commands/test/__snapshots__/test.test.ts.snap b/packages/winglang/src/commands/test/__snapshots__/test.test.ts.snap index 99106f4b022..44f5295c9c5 100644 --- a/packages/winglang/src/commands/test/__snapshots__/test.test.ts.snap +++ b/packages/winglang/src/commands/test/__snapshots__/test.test.ts.snap @@ -1,5 +1,7 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +exports[`printing test reports > results for files with no tests 1`] = `"pass ─ hello.w (no tests)"`; + exports[`printing test reports > verbose traces are not shown if debug mode is disabled 1`] = ` "fail ┌ hello.w » root/env0/test:test │ sleeping for 500 ms diff --git a/packages/winglang/src/commands/test/test.test.ts b/packages/winglang/src/commands/test/test.test.ts index 696603b5612..54684a45408 100644 --- a/packages/winglang/src/commands/test/test.test.ts +++ b/packages/winglang/src/commands/test/test.test.ts @@ -5,7 +5,7 @@ import { join } from "path"; import { BuiltinPlatform } from "@winglang/compiler"; import { LogLevel, TestResult, TraceType } from "@winglang/sdk/lib/std"; import chalk from "chalk"; -import { describe, test, expect, beforeEach, afterEach, vi, SpyInstance } from "vitest"; +import { describe, test, expect, beforeEach, afterEach, vi, MockInstance } from "vitest"; import { filterTests, renderTestReport, collectTestFiles, test as wingTest } from "."; import * as resultsFn from "./results"; import { SnapshotMode } from "./snapshots"; @@ -45,10 +45,21 @@ describe("printing test reports", () => { expect(testReport).toMatchSnapshot(); expect(testReport).toContain("Push (message=cool)"); }); + + test("results for files with no tests", async () => { + let inputResults: TestResult[] = []; + const testReport = await renderTestReport("hello.w", inputResults); + + expect(testReport).toMatchSnapshot(); + expect(testReport).toContain("(no tests)"); + + // verify that the the no dummy test results were added + expect(inputResults).toHaveLength(0); + }); }); describe("wing test (custom platform)", () => { - let logSpy: SpyInstance; + let logSpy: MockInstance; beforeEach(() => { chalk.level = 0; @@ -208,7 +219,7 @@ describe("collectTestFiles", () => { }); describe("output-file option", () => { - let writeResultsSpy: SpyInstance; + let writeResultsSpy: MockInstance; beforeEach(() => { chalk.level = 0; @@ -304,7 +315,7 @@ describe("test-filter option", () => { }); describe("retry and parallel options", () => { - let logSpy: SpyInstance; + let logSpy: MockInstance; beforeEach(() => { chalk.level = 0; diff --git a/packages/winglang/src/commands/test/test.ts b/packages/winglang/src/commands/test/test.ts index 4042cf80e2e..0a12ecacf3c 100644 --- a/packages/winglang/src/commands/test/test.ts +++ b/packages/winglang/src/commands/test/test.ts @@ -262,14 +262,10 @@ export async function renderTestReport( 0 ); - // if there are no inflight tests, add a dummy "pass" result + // return early if there are no tests, return a pass output // to indicate that compilation and preflight checks passed if (results.length === 0) { - results.push({ - pass: true, - path: "", - traces: [], - }); + return `${chalk.green("pass")} ─ ${basename(entrypoint)} ${chalk.gray("(no tests)")}`; } for (const result of results.sort(sortTests)) { @@ -307,13 +303,8 @@ export async function renderTestReport( } firstRow.push(basename(entrypoint)); - - if (result.path?.length > 0) { - firstRow.push(chalk.gray("»")); - firstRow.push(chalk.whiteBright(result.path.padEnd(longestPath))); - } else { - firstRow.push(chalk.gray("(no tests)")); - } + firstRow.push(chalk.gray("»")); + firstRow.push(chalk.whiteBright(result.path.padEnd(longestPath))); // okay we are ready to print the test result diff --git a/tests/doc_examples/invalid/01-variable-declaration.md_example_1/main.w b/tests/doc_examples/invalid/01-variable-declaration.md_example_1/main.w deleted file mode 100644 index fe1bf28f255..00000000000 --- a/tests/doc_examples/invalid/01-variable-declaration.md_example_1/main.w +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto generated from an example found in: 01-variable-declaration.md_example_1 -// Example metadata: {"valid":false} -let x = 12; -x = 77; // error: Variable is not reassignable diff --git a/tests/doc_examples/invalid/01-variable-declaration.md_example_4/main.w b/tests/doc_examples/invalid/01-variable-declaration.md_example_4/main.w deleted file mode 100644 index 1894434fd78..00000000000 --- a/tests/doc_examples/invalid/01-variable-declaration.md_example_4/main.w +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto generated from an example found in: 01-variable-declaration.md_example_4 -// Example metadata: {"valid":false} -let var x1 = "Hello"; // type str, value "Hello" -let var x2: str = "Hello"; // same as above -let var x3: str? = "Hello"; // type str? (optional), value "Hello" -let var x4: str? = nil; // type str? (optional), value nil - -x1 = nil; // ERROR: Expected type to be "str", but got "nil" instead -x3 = nil; // OK (x3 is optional) diff --git a/tests/doc_examples/valid/01-variable-declaration.md_example_2/main.w b/tests/doc_examples/valid/01-variable-declaration.md_example_2/main.w deleted file mode 100644 index 3ea48d09629..00000000000 --- a/tests/doc_examples/valid/01-variable-declaration.md_example_2/main.w +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto generated from an example found in: 01-variable-declaration.md_example_2 -// Example metadata: {"valid":true} -let var y = "hello"; -y = "world"; // OK (y is reassignable) diff --git a/tests/doc_examples/valid/01-variable-declaration.md_example_3/main.w b/tests/doc_examples/valid/01-variable-declaration.md_example_3/main.w deleted file mode 100644 index d9ef2be947c..00000000000 --- a/tests/doc_examples/valid/01-variable-declaration.md_example_3/main.w +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto generated from an example found in: 01-variable-declaration.md_example_3 -// Example metadata: {"valid":true} -let x1 = 12; -let x2: num = 12; // equivalent diff --git a/tests/doc_examples/valid/01-variable-declaration.md_example_5/main.w b/tests/doc_examples/valid/01-variable-declaration.md_example_5/main.w deleted file mode 100644 index 7b3968d7f14..00000000000 --- a/tests/doc_examples/valid/01-variable-declaration.md_example_5/main.w +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto generated from an example found in: 01-variable-declaration.md_example_5 -// Example metadata: {"valid":true} -let s = "parent"; -log(s); // prints parent -if true { - let s = "inner"; - log(s); // prints inner -} -log(s); // prints parent diff --git a/tests/doc_examples/valid/03-functions.md_example_1/main.w b/tests/doc_examples/valid/03-functions.md_example_1/main.w deleted file mode 100644 index 57ccb08f10b..00000000000 --- a/tests/doc_examples/valid/03-functions.md_example_1/main.w +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto generated from an example found in: 03-functions.md_example_1 -// Example metadata: {"valid":true} -// preflight function - when declared in preflight context -let dup = (s: str, count: num) => { - // code -}; diff --git a/tests/doc_examples/valid/02-primitives.md_example_1/main.w b/tests/doc_examples/valid/03-values.md_example_1/main.w similarity index 78% rename from tests/doc_examples/valid/02-primitives.md_example_1/main.w rename to tests/doc_examples/valid/03-values.md_example_1/main.w index 0cdb9a21d0a..186090ffb55 100644 --- a/tests/doc_examples/valid/02-primitives.md_example_1/main.w +++ b/tests/doc_examples/valid/03-values.md_example_1/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 02-primitives.md_example_1 +// This file was auto generated from an example found in: 03-values.md_example_1 // Example metadata: {"valid":true} let s1 = "Hello Wing String"; log(s1); // prints Hello Wing String diff --git a/tests/doc_examples/valid/02-primitives.md_example_2/main.w b/tests/doc_examples/valid/03-values.md_example_2/main.w similarity index 87% rename from tests/doc_examples/valid/02-primitives.md_example_2/main.w rename to tests/doc_examples/valid/03-values.md_example_2/main.w index 5535f0a4670..563bf0d177c 100644 --- a/tests/doc_examples/valid/02-primitives.md_example_2/main.w +++ b/tests/doc_examples/valid/03-values.md_example_2/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 02-primitives.md_example_2 +// This file was auto generated from an example found in: 03-values.md_example_2 // Example metadata: {"valid":true} let s = "Hello to a new Wing world"; diff --git a/tests/doc_examples/valid/02-primitives.md_example_3/main.w b/tests/doc_examples/valid/03-values.md_example_3/main.w similarity index 82% rename from tests/doc_examples/valid/02-primitives.md_example_3/main.w rename to tests/doc_examples/valid/03-values.md_example_3/main.w index b8d9fe60c56..1885cb0c886 100644 --- a/tests/doc_examples/valid/02-primitives.md_example_3/main.w +++ b/tests/doc_examples/valid/03-values.md_example_3/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 02-primitives.md_example_3 +// This file was auto generated from an example found in: 03-values.md_example_3 // Example metadata: {"valid":true} let n1 = 10; log("{n1}"); // 10 diff --git a/tests/doc_examples/valid/02-primitives.md_example_4/main.w b/tests/doc_examples/valid/03-values.md_example_4/main.w similarity index 62% rename from tests/doc_examples/valid/02-primitives.md_example_4/main.w rename to tests/doc_examples/valid/03-values.md_example_4/main.w index c9dbf43d252..904472ebaed 100644 --- a/tests/doc_examples/valid/02-primitives.md_example_4/main.w +++ b/tests/doc_examples/valid/03-values.md_example_4/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 02-primitives.md_example_4 +// This file was auto generated from an example found in: 03-values.md_example_4 // Example metadata: {"valid":true} let b1 = true; let b2 = false; diff --git a/tests/doc_examples/valid/04-flow-controls.md_example_1/main.w b/tests/doc_examples/valid/04-flow-controls.md_example_1/main.w deleted file mode 100644 index 94383efc82b..00000000000 --- a/tests/doc_examples/valid/04-flow-controls.md_example_1/main.w +++ /dev/null @@ -1,22 +0,0 @@ -// This file was auto generated from an example found in: 04-flow-controls.md_example_1 -// Example metadata: {"valid":true} -let iterable = ["a", "b", "c", "d", "e", "f", "g", "h"]; -for value in iterable { - if value == "g" { - // stopping at g - break; - } - if value == "b" { - // skipping b - continue; - } - log(value); -} -/** - * prints - a - c - d - e - f -**/ diff --git a/tests/doc_examples/valid/04-flow-controls.md_example_2/main.w b/tests/doc_examples/valid/04-flow-controls.md_example_2/main.w deleted file mode 100644 index 9b83cbcd9bc..00000000000 --- a/tests/doc_examples/valid/04-flow-controls.md_example_2/main.w +++ /dev/null @@ -1,16 +0,0 @@ -// This file was auto generated from an example found in: 04-flow-controls.md_example_2 -// Example metadata: {"valid":true} -// print numbers from 0 to 9 -for value in 0..10 { - log("{value}"); -} - -// prints numbers in reverse order from 10 to 0 -for value in 10..-1 { - log("{value}"); -} - -// include end -for value in 1..=5 { - log("{value}"); -} diff --git a/tests/doc_examples/valid/04-flow-controls.md_example_3/main.w b/tests/doc_examples/valid/04-flow-controls.md_example_3/main.w deleted file mode 100644 index 3921f02001a..00000000000 --- a/tests/doc_examples/valid/04-flow-controls.md_example_3/main.w +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto generated from an example found in: 04-flow-controls.md_example_3 -// Example metadata: {"valid":true} -let grade = (score: num): str => { - // Parentheses are optional in conditions. - // However, curly braces are required in `if/else` statements. - if 0 < score && score < 55 { - return "F"; - } else if 55 <= score && score < 65 { - return "C"; - } else if 65 <= score && score < 75 { - return "B"; - } else if 75 <= score && score <= 100 { - return "A"; - } else { - return "Invalid grade"; - } -}; - -log("54 is {grade(54)}"); // 54 is F -log("62 is {grade(62)}"); // 62 is C -log("68 is {grade(68)}"); // 68 is B -log("99 is {grade(99)}"); // 99 is A -log("101 is {grade(101)}"); // 101 is Invalid grade diff --git a/tests/doc_examples/valid/04-flow-controls.md_example_4/main.w b/tests/doc_examples/valid/04-flow-controls.md_example_4/main.w deleted file mode 100644 index b6e84150263..00000000000 --- a/tests/doc_examples/valid/04-flow-controls.md_example_4/main.w +++ /dev/null @@ -1,28 +0,0 @@ -// This file was auto generated from an example found in: 04-flow-controls.md_example_4 -// Example metadata: {"valid":true} -let var i = 0; -while i < 100 { - i = i + 1; - if i == 20 { - // although the while loop goes to 100, we break it at 20 - break; - } - if i % 2 == 0 { - // continue for even numbers - continue; - } - log("{i}"); -} -/** - * prints - 1 - 3 - 5 - 7 - 9 - 11 - 13 - 15 - 17 - 19 -**/ diff --git a/tests/doc_examples/valid/05-optionality.md_example_1/main.w b/tests/doc_examples/valid/05-optionality.md_example_1/main.w deleted file mode 100644 index 99c37bc9059..00000000000 --- a/tests/doc_examples/valid/05-optionality.md_example_1/main.w +++ /dev/null @@ -1,4 +0,0 @@ -// This file was auto generated from an example found in: 05-optionality.md_example_1 -// Example metadata: {"valid":true} -let s1: str? = "Hello"; // type str? (optional), value "Hello" -let s2: str? = nil; // type str? (optional), value nil diff --git a/tests/doc_examples/valid/06-json.md_example_1/main.w b/tests/doc_examples/valid/06-json.md_example_1/main.w deleted file mode 100644 index 033b7e26cd3..00000000000 --- a/tests/doc_examples/valid/06-json.md_example_1/main.w +++ /dev/null @@ -1,23 +0,0 @@ -// This file was auto generated from an example found in: 06-json.md_example_1 -// Example metadata: {"valid":true} -let j = Json { - k1: 1, - k2: "hello", - k3: true, - k4: { - k1: [1, "a", true, {} ] - } -}; -log("{j}"); - -let jsonStrValue = Json "Hello"; -log("{jsonStrValue}"); - -let jsonNumValue = Json 42; -log("{jsonNumValue}"); - -let jsonBoolValue = Json true; -log("{jsonBoolValue}"); - -let jsonHomogeneousArrayValue = Json ["a", "b"]; -log("{jsonHomogeneousArrayValue}"); diff --git a/tests/doc_examples/valid/07-structs.md_example_1/main.w b/tests/doc_examples/valid/07-structs.md_example_1/main.w deleted file mode 100644 index ac77a1892a0..00000000000 --- a/tests/doc_examples/valid/07-structs.md_example_1/main.w +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto generated from an example found in: 07-structs.md_example_1 -// Example metadata: {"valid":true} -struct Example { - a: str; - b: num; - c: bool; -} - -let example = Example { a: "a", b: 0, c: false }; -log(example.a); // prints "a" diff --git a/tests/doc_examples/valid/07-structs.md_example_2/main.w b/tests/doc_examples/valid/07-structs.md_example_2/main.w deleted file mode 100644 index c54e3b5bb80..00000000000 --- a/tests/doc_examples/valid/07-structs.md_example_2/main.w +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto generated from an example found in: 07-structs.md_example_2 -// Example metadata: {"valid":true} -struct Example { - a: str?; - b: num?; - c: bool?; -} - -let example = Example { }; -if example.a == nil { - log("a is nil"); -} diff --git a/tests/doc_examples/valid/07-structs.md_example_3/main.w b/tests/doc_examples/valid/07-structs.md_example_3/main.w deleted file mode 100644 index 97b1088b98b..00000000000 --- a/tests/doc_examples/valid/07-structs.md_example_3/main.w +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto generated from an example found in: 07-structs.md_example_3 -// Example metadata: {"valid":true} -struct Another { - hello: str; -} - -struct MyData { - a: str; - b: num?; - c: Another; -} - -let data = MyData { - a: "hello", - c: Another { - hello: "two" - } -}; - -log(data.a); // prints hello -log(data.c.hello); // prints two diff --git a/tests/doc_examples/valid/07-structs.md_example_4/main.w b/tests/doc_examples/valid/07-structs.md_example_4/main.w deleted file mode 100644 index 54867719c4c..00000000000 --- a/tests/doc_examples/valid/07-structs.md_example_4/main.w +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto generated from an example found in: 07-structs.md_example_4 -// Example metadata: {"valid":true} -struct Options { - prefix: str?; - delim: str; -} - -let join_str = (a: Array, opts: Options):str => { - let prefix = opts.prefix ?? ""; - return prefix + a.join(opts.delim); -}; - -log(join_str(["hello", "world"], delim: ", ")); // "!hello.world" - -// also OK to pass an object -let opts = Options { delim: "," }; -log(join_str(["hello", "world"], opts)); // "!!hello/world"); diff --git a/tests/doc_examples/valid/08-classes.md_example_4/main.w b/tests/doc_examples/valid/08-classes.md_example_4/main.w deleted file mode 100644 index c3ad7f6f634..00000000000 --- a/tests/doc_examples/valid/08-classes.md_example_4/main.w +++ /dev/null @@ -1,32 +0,0 @@ -// This file was auto generated from an example found in: 08-classes.md_example_4 -// Example metadata: {"valid":true} -bring cloud; - -interface IKVStore extends std.IResource { - inflight get(key: str): Json; - inflight set(key: str, value: Json): void; -} - -class BucketBasedKeyValueStore impl IKVStore { - bucket: cloud.Bucket; - new() { - this.bucket = new cloud.Bucket(); - } - pub inflight get(key: str): Json { - return this.bucket.getJson(key); - } - pub inflight set(key: str, value: Json): void { - this.bucket.putJson(key, value); - } -} - -let bucketBased: IKVStore = new BucketBasedKeyValueStore(); - -test "bucketBased KVStore" { - bucketBased.set("k", Json { - value: "v" - }); - let result = bucketBased.get("k"); - log("{result.get("value")}"); - assert("v" == str.fromJson(result.get("value"))); -} diff --git a/tests/doc_examples/valid/05-optionality.md_example_2/main.w b/tests/doc_examples/valid/08-optionality.md_example_1/main.w similarity index 73% rename from tests/doc_examples/valid/05-optionality.md_example_2/main.w rename to tests/doc_examples/valid/08-optionality.md_example_1/main.w index 32e7b01cca6..08a135a455c 100644 --- a/tests/doc_examples/valid/05-optionality.md_example_2/main.w +++ b/tests/doc_examples/valid/08-optionality.md_example_1/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 05-optionality.md_example_2 +// This file was auto generated from an example found in: 08-optionality.md_example_1 // Example metadata: {"valid":true} let s1: str? = "Hello"; // type str? (optional), value "Hello" let s2: str? = nil; // type str? (optional), value nil diff --git a/tests/doc_examples/valid/05-optionality.md_example_3/main.w b/tests/doc_examples/valid/08-optionality.md_example_2/main.w similarity index 83% rename from tests/doc_examples/valid/05-optionality.md_example_3/main.w rename to tests/doc_examples/valid/08-optionality.md_example_2/main.w index e4355080865..c35daeaa4ec 100644 --- a/tests/doc_examples/valid/05-optionality.md_example_3/main.w +++ b/tests/doc_examples/valid/08-optionality.md_example_2/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 05-optionality.md_example_3 +// This file was auto generated from an example found in: 08-optionality.md_example_2 // Example metadata: {"valid":true} let s1: str? = "Hello"; // type str? (optional), value "Hello" diff --git a/tests/doc_examples/valid/05-optionality.md_example_4/main.w b/tests/doc_examples/valid/08-optionality.md_example_3/main.w similarity index 67% rename from tests/doc_examples/valid/05-optionality.md_example_4/main.w rename to tests/doc_examples/valid/08-optionality.md_example_3/main.w index f9589cfb47b..03a5937d1dc 100644 --- a/tests/doc_examples/valid/05-optionality.md_example_4/main.w +++ b/tests/doc_examples/valid/08-optionality.md_example_3/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 05-optionality.md_example_4 +// This file was auto generated from an example found in: 08-optionality.md_example_3 // Example metadata: {"valid":true} let s1: str? = nil; // type str? (optional), value nil let s2 = s1 ?? "default value"; // s2 is of type str diff --git a/tests/doc_examples/valid/05-optionality.md_example_5/main.w b/tests/doc_examples/valid/08-optionality.md_example_4/main.w similarity index 80% rename from tests/doc_examples/valid/05-optionality.md_example_5/main.w rename to tests/doc_examples/valid/08-optionality.md_example_4/main.w index 1f906eb049c..be66cd87ace 100644 --- a/tests/doc_examples/valid/05-optionality.md_example_5/main.w +++ b/tests/doc_examples/valid/08-optionality.md_example_4/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 05-optionality.md_example_5 +// This file was auto generated from an example found in: 08-optionality.md_example_4 // Example metadata: {"valid":true} let j = Json { working: { diff --git a/tests/doc_examples/valid/05-optionality.md_example_6/main.w b/tests/doc_examples/valid/08-optionality.md_example_5/main.w similarity index 75% rename from tests/doc_examples/valid/05-optionality.md_example_6/main.w rename to tests/doc_examples/valid/08-optionality.md_example_5/main.w index 803e8ef0cd9..5685f22f620 100644 --- a/tests/doc_examples/valid/05-optionality.md_example_6/main.w +++ b/tests/doc_examples/valid/08-optionality.md_example_5/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 05-optionality.md_example_6 +// This file was auto generated from an example found in: 08-optionality.md_example_5 // Example metadata: {"valid":true} let b3: bool? = false; diff --git a/tests/doc_examples/valid/12-structs.md_example_1/main.w b/tests/doc_examples/valid/12-structs.md_example_1/main.w index b158780d0de..dbf60e44bc6 100644 --- a/tests/doc_examples/valid/12-structs.md_example_1/main.w +++ b/tests/doc_examples/valid/12-structs.md_example_1/main.w @@ -23,6 +23,6 @@ let data = MyData { } }; -log(data.a); -log(data.c.a); -log(data.c.b); +log(data.a); // prints hello +log(data.c.a); //prints world +log(data.c.b); //prints 42 diff --git a/tests/doc_examples/valid/03-functions.md_example_3/main.w b/tests/doc_examples/valid/12-structs.md_example_2/main.w similarity index 64% rename from tests/doc_examples/valid/03-functions.md_example_3/main.w rename to tests/doc_examples/valid/12-structs.md_example_2/main.w index 4b7db9fa5c9..2e382346af2 100644 --- a/tests/doc_examples/valid/03-functions.md_example_3/main.w +++ b/tests/doc_examples/valid/12-structs.md_example_2/main.w @@ -1,7 +1,9 @@ -// This file was auto generated from an example found in: 03-functions.md_example_3 +// This file was auto generated from an example found in: 12-structs.md_example_2 // Example metadata: {"valid":true} struct Options { + // optional prefix: str?; + // required delim: str; } @@ -10,7 +12,8 @@ let join_str = (a: Array, opts: Options):str => { return prefix + a.join(opts.delim); }; -log(join_str(["hello", "world"], delim: ", ")); // "!hello.world" +// pass options directly +log(join_str(["hello", "world"], delim: ", ")); // "hello, world" // also OK to pass an object let opts = Options { delim: "/" , prefix: "!!" }; diff --git a/tests/doc_examples/valid/14-functions.md_example_1/main.w b/tests/doc_examples/valid/14-functions.md_example_1/main.w index eef40b0312d..519563e4e4d 100644 --- a/tests/doc_examples/valid/14-functions.md_example_1/main.w +++ b/tests/doc_examples/valid/14-functions.md_example_1/main.w @@ -15,4 +15,4 @@ let func = new cloud.Function(inflight (payload:Json?) => { let value = plus(1, 2); -log(value); +log(value); // 3 diff --git a/tests/doc_examples/valid/03-functions.md_example_2/main.w b/tests/doc_examples/valid/14-functions.md_example_2/main.w similarity index 84% rename from tests/doc_examples/valid/03-functions.md_example_2/main.w rename to tests/doc_examples/valid/14-functions.md_example_2/main.w index a7ca33ea8a9..e2eb3aa902e 100644 --- a/tests/doc_examples/valid/03-functions.md_example_2/main.w +++ b/tests/doc_examples/valid/14-functions.md_example_2/main.w @@ -1,6 +1,5 @@ -// This file was auto generated from an example found in: 03-functions.md_example_2 +// This file was auto generated from an example found in: 14-functions.md_example_2 // Example metadata: {"valid":true} - let handler = inflight (message: str): void => { // using the inflight modifier let dup = inflight (s: str, count: num) => { diff --git a/tests/doc_examples/valid/15-variadic-functions.md_example_1/main.w b/tests/doc_examples/valid/14-variadic-functions.md_example_1/main.w similarity index 86% rename from tests/doc_examples/valid/15-variadic-functions.md_example_1/main.w rename to tests/doc_examples/valid/14-variadic-functions.md_example_1/main.w index 494d86a6635..e5337547f7d 100644 --- a/tests/doc_examples/valid/15-variadic-functions.md_example_1/main.w +++ b/tests/doc_examples/valid/14-variadic-functions.md_example_1/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 15-variadic-functions.md_example_1 +// This file was auto generated from an example found in: 14-variadic-functions.md_example_1 // Example metadata: {"valid":true} // Function that will take an arbitrary number of numbers as arguments. let plus = (...numbers: Array) => { diff --git a/tests/doc_examples/valid/08-classes.md_example_1/main.w b/tests/doc_examples/valid/15-classes.md_example_1/main.w similarity index 67% rename from tests/doc_examples/valid/08-classes.md_example_1/main.w rename to tests/doc_examples/valid/15-classes.md_example_1/main.w index 4dcab81f940..50b4719710f 100644 --- a/tests/doc_examples/valid/08-classes.md_example_1/main.w +++ b/tests/doc_examples/valid/15-classes.md_example_1/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 08-classes.md_example_1 +// This file was auto generated from an example found in: 15-classes.md_example_1 // Example metadata: {"valid":true} bring cloud; bring util; @@ -17,11 +17,13 @@ class Foo { this.field2 = value; } + // private inflight function, only accessible during inflight inflight new() { this.field3 = ["value created on inflight init"]; log("at inflight init"); } + // public inflight function, only accessible during inflight pub inflight doStuff() { // all code is async and runs on the cloud log("field3[0]='{this.field3.at(0)}'"); @@ -34,7 +36,10 @@ let f = new Foo(); log("field1={f.field1}"); log("field2={f.field2}"); +// inflight example for a cloud function new cloud.Function(inflight () => { + // calling the public inflight function (doStuff) of the Foo class. + // This function is not accessible during preflight. f.doStuff(); }); diff --git a/tests/doc_examples/valid/08-classes.md_example_2/main.w b/tests/doc_examples/valid/15-classes.md_example_2/main.w similarity index 60% rename from tests/doc_examples/valid/08-classes.md_example_2/main.w rename to tests/doc_examples/valid/15-classes.md_example_2/main.w index 2d3401ba798..8ba5246950f 100644 --- a/tests/doc_examples/valid/08-classes.md_example_2/main.w +++ b/tests/doc_examples/valid/15-classes.md_example_2/main.w @@ -1,17 +1,22 @@ -// This file was auto generated from an example found in: 08-classes.md_example_2 +// This file was auto generated from an example found in: 15-classes.md_example_2 // Example metadata: {"valid":true} bring cloud; +// define the interface inflight interface IProfile { + // inflight function inflight name(): str; } +// new class that implements the interface inflight class WingPerson impl IProfile { + // custom definition of the name function pub inflight name(): str { return "Fairy Wing"; } } +// inflight function that accepts the interface let logName = inflight(profile: IProfile): void => { log(profile.name()); }; diff --git a/tests/doc_examples/valid/08-classes.md_example_3/main.w b/tests/doc_examples/valid/15-classes.md_example_3/main.w similarity index 89% rename from tests/doc_examples/valid/08-classes.md_example_3/main.w rename to tests/doc_examples/valid/15-classes.md_example_3/main.w index f84b999927f..a563d31a2e7 100644 --- a/tests/doc_examples/valid/08-classes.md_example_3/main.w +++ b/tests/doc_examples/valid/15-classes.md_example_3/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 08-classes.md_example_3 +// This file was auto generated from an example found in: 15-classes.md_example_3 // Example metadata: {"valid":true} bring cloud; /** diff --git a/tests/doc_examples/valid/14-singletons.md_example_1/main.w b/tests/doc_examples/valid/15-singletons.md_example_1/main.w similarity index 84% rename from tests/doc_examples/valid/14-singletons.md_example_1/main.w rename to tests/doc_examples/valid/15-singletons.md_example_1/main.w index e153693bfa8..976dfcc9eda 100644 --- a/tests/doc_examples/valid/14-singletons.md_example_1/main.w +++ b/tests/doc_examples/valid/15-singletons.md_example_1/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 14-singletons.md_example_1 +// This file was auto generated from an example found in: 15-singletons.md_example_1 // Example metadata: {"valid":true} bring cloud; diff --git a/tests/doc_examples/valid/23-Json.md_example_1/main.w b/tests/doc_examples/valid/23-Json.md_example_1/main.w index 3bc8941ed85..fcf18a6277f 100644 --- a/tests/doc_examples/valid/23-Json.md_example_1/main.w +++ b/tests/doc_examples/valid/23-Json.md_example_1/main.w @@ -6,49 +6,20 @@ let person = Json { }; // stringify -log(Json.stringify(person)); +log(Json.stringify(person)); // {"firstName":"John","lastName":"Smith"} // parse -log(Json.parse("\{\"firstName\":\"John\",\"lastName\":\"Smith\"}")); +log(Json.parse("\{\"firstName\":\"John\",\"lastName\":\"Smith\"}")); // { firstName: 'John', lastName: 'Smith' } // Try and parse if let jsonFromTryParse = Json.tryParse("\{\"firstName\":\"John\",\"lastName\":\"Smith\"}") { - log("{jsonFromTryParse}"); + log("{jsonFromTryParse}"); // {"firstName":"John","lastName":"Smith"} } else { log("failed to parse string to JSON"); } // Deep copy of Json let newPerson = Json.deepCopy(person); -log(Json.stringify(person)); +log(Json.stringify(person)); // {"firstName":"John","lastName":"Smith"} -// iterate over keys -for k in Json.keys(person) { - let value = person.get(k); - log("found key {k} with value {value}"); -} - -// iterate over values -for value in Json.values(person) { - log("found value {value}"); -} - -// iterate over array -let arrayValue = Json ["a", "b", "c"]; -for v in Json.values(arrayValue) { - log(str.fromJson(v)); -} - -// Convert to structs -struct Foo { - val1: str; - val2: num; -} - -let jFoo = { - val1: "cool", - val2: 21 -}; -let foo = Foo.fromJson(jFoo); -log(Json.stringify(foo)); diff --git a/tests/doc_examples/valid/06-json.md_example_9/main.w b/tests/doc_examples/valid/23-Json.md_example_10/main.w similarity index 65% rename from tests/doc_examples/valid/06-json.md_example_9/main.w rename to tests/doc_examples/valid/23-Json.md_example_10/main.w index 1e35a7912f0..d20260260de 100644 --- a/tests/doc_examples/valid/06-json.md_example_9/main.w +++ b/tests/doc_examples/valid/23-Json.md_example_10/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 06-json.md_example_9 +// This file was auto generated from an example found in: 23-Json.md_example_10 // Example metadata: {"valid":true} struct Foo { val1: str; diff --git a/tests/doc_examples/valid/23-Json.md_example_2/main.w b/tests/doc_examples/valid/23-Json.md_example_2/main.w new file mode 100644 index 00000000000..1e2f47cbfe1 --- /dev/null +++ b/tests/doc_examples/valid/23-Json.md_example_2/main.w @@ -0,0 +1,23 @@ +// This file was auto generated from an example found in: 23-Json.md_example_2 +// Example metadata: {"valid":true} +let j = Json { + k1: 1, + k2: "hello", + k3: true, + k4: { + k1: [1, "a", true, {} ] + } +}; +log("{j}"); // {"k1":1,"k2":"hello","k3":true,"k4":{"k1":[1,"a",true,{}]}} + +let jsonStrValue = Json "Hello"; +log("{jsonStrValue}"); // "Hello" + +let jsonNumValue = Json 42; +log("{jsonNumValue}"); // 42 + +let jsonBoolValue = Json true; +log("{jsonBoolValue}"); // true + +let jsonHomogeneousArrayValue = Json ["a", "b"]; +log("{jsonHomogeneousArrayValue}"); // ["a","b"] diff --git a/tests/doc_examples/valid/06-json.md_example_2/main.w b/tests/doc_examples/valid/23-Json.md_example_3/main.w similarity index 79% rename from tests/doc_examples/valid/06-json.md_example_2/main.w rename to tests/doc_examples/valid/23-Json.md_example_3/main.w index 82418742392..7bbf71ad6e8 100644 --- a/tests/doc_examples/valid/06-json.md_example_2/main.w +++ b/tests/doc_examples/valid/23-Json.md_example_3/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 06-json.md_example_2 +// This file was auto generated from an example found in: 23-Json.md_example_3 // Example metadata: {"valid":true} let x: num = 42; let jsonNum = Json x; diff --git a/tests/doc_examples/valid/06-json.md_example_3/main.w b/tests/doc_examples/valid/23-Json.md_example_4/main.w similarity index 68% rename from tests/doc_examples/valid/06-json.md_example_3/main.w rename to tests/doc_examples/valid/23-Json.md_example_4/main.w index 04a1ca743aa..acebe10cfb1 100644 --- a/tests/doc_examples/valid/06-json.md_example_3/main.w +++ b/tests/doc_examples/valid/23-Json.md_example_4/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 06-json.md_example_3 +// This file was auto generated from an example found in: 23-Json.md_example_4 // Example metadata: {"valid":true} let j = Json { k1: "v1", diff --git a/tests/doc_examples/valid/06-json.md_example_4/main.w b/tests/doc_examples/valid/23-Json.md_example_5/main.w similarity index 64% rename from tests/doc_examples/valid/06-json.md_example_4/main.w rename to tests/doc_examples/valid/23-Json.md_example_5/main.w index 9d51fe48328..a61418b92ec 100644 --- a/tests/doc_examples/valid/06-json.md_example_4/main.w +++ b/tests/doc_examples/valid/23-Json.md_example_5/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 06-json.md_example_4 +// This file was auto generated from an example found in: 23-Json.md_example_5 // Example metadata: {"valid":true} let j = Json { k1: "v1", diff --git a/tests/doc_examples/valid/06-json.md_example_5/main.w b/tests/doc_examples/valid/23-Json.md_example_6/main.w similarity index 63% rename from tests/doc_examples/valid/06-json.md_example_5/main.w rename to tests/doc_examples/valid/23-Json.md_example_6/main.w index f677769b9fa..4178b8ef3d8 100644 --- a/tests/doc_examples/valid/06-json.md_example_5/main.w +++ b/tests/doc_examples/valid/23-Json.md_example_6/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 06-json.md_example_5 +// This file was auto generated from an example found in: 23-Json.md_example_6 // Example metadata: {"valid":true} let arrayValue = Json ["a", "b", "c"]; for v in Json.values(arrayValue) { diff --git a/tests/doc_examples/valid/06-json.md_example_6/main.w b/tests/doc_examples/valid/23-Json.md_example_7/main.w similarity index 54% rename from tests/doc_examples/valid/06-json.md_example_6/main.w rename to tests/doc_examples/valid/23-Json.md_example_7/main.w index b83d75c0243..7ccb4aab170 100644 --- a/tests/doc_examples/valid/06-json.md_example_6/main.w +++ b/tests/doc_examples/valid/23-Json.md_example_7/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 06-json.md_example_6 +// This file was auto generated from an example found in: 23-Json.md_example_7 // Example metadata: {"valid":true} let j = Json { k: "hello" diff --git a/tests/doc_examples/valid/06-json.md_example_7/main.w b/tests/doc_examples/valid/23-Json.md_example_8/main.w similarity index 53% rename from tests/doc_examples/valid/06-json.md_example_7/main.w rename to tests/doc_examples/valid/23-Json.md_example_8/main.w index 20547f84dbc..d5efa3639c6 100644 --- a/tests/doc_examples/valid/06-json.md_example_7/main.w +++ b/tests/doc_examples/valid/23-Json.md_example_8/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 06-json.md_example_7 +// This file was auto generated from an example found in: 23-Json.md_example_8 // Example metadata: {"valid":true} let j = Json { k: 12 diff --git a/tests/doc_examples/valid/06-json.md_example_8/main.w b/tests/doc_examples/valid/23-Json.md_example_9/main.w similarity index 54% rename from tests/doc_examples/valid/06-json.md_example_8/main.w rename to tests/doc_examples/valid/23-Json.md_example_9/main.w index c1fe2966aef..3694d8f62f2 100644 --- a/tests/doc_examples/valid/06-json.md_example_8/main.w +++ b/tests/doc_examples/valid/23-Json.md_example_9/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 06-json.md_example_8 +// This file was auto generated from an example found in: 23-Json.md_example_9 // Example metadata: {"valid":true} let j = Json { k:true diff --git a/tests/doc_examples/valid/13-api-gateway.md_example_1/main.w b/tests/doc_examples/valid/34-http-server.md_example_2/main.w similarity index 89% rename from tests/doc_examples/valid/13-api-gateway.md_example_1/main.w rename to tests/doc_examples/valid/34-http-server.md_example_2/main.w index 7fb3c783d3a..3739b0492a8 100644 --- a/tests/doc_examples/valid/13-api-gateway.md_example_1/main.w +++ b/tests/doc_examples/valid/34-http-server.md_example_2/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 13-api-gateway.md_example_1 +// This file was auto generated from an example found in: 34-http-server.md_example_2 // Example metadata: {"valid":true} bring cloud; diff --git a/tests/doc_examples/valid/13-api-gateway.md_example_2/main.w b/tests/doc_examples/valid/34-http-server.md_example_3/main.w similarity index 82% rename from tests/doc_examples/valid/13-api-gateway.md_example_2/main.w rename to tests/doc_examples/valid/34-http-server.md_example_3/main.w index c4fbe45e598..985f31326f9 100644 --- a/tests/doc_examples/valid/13-api-gateway.md_example_2/main.w +++ b/tests/doc_examples/valid/34-http-server.md_example_3/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 13-api-gateway.md_example_2 +// This file was auto generated from an example found in: 34-http-server.md_example_3 // Example metadata: {"valid":true} bring cloud; diff --git a/tests/doc_examples/valid/13-api-gateway.md_example_3/main.w b/tests/doc_examples/valid/34-http-server.md_example_4/main.w similarity index 84% rename from tests/doc_examples/valid/13-api-gateway.md_example_3/main.w rename to tests/doc_examples/valid/34-http-server.md_example_4/main.w index 1615f1620e9..5cb2d8d2486 100644 --- a/tests/doc_examples/valid/13-api-gateway.md_example_3/main.w +++ b/tests/doc_examples/valid/34-http-server.md_example_4/main.w @@ -1,4 +1,4 @@ -// This file was auto generated from an example found in: 13-api-gateway.md_example_3 +// This file was auto generated from an example found in: 34-http-server.md_example_4 // Example metadata: {"valid":true} bring cloud; diff --git a/tests/doc_examples/valid/37-duration.md_example_1/main.w b/tests/doc_examples/valid/37-duration.md_example_1/main.w new file mode 100644 index 00000000000..a723fd8b089 --- /dev/null +++ b/tests/doc_examples/valid/37-duration.md_example_1/main.w @@ -0,0 +1,19 @@ +// This file was auto generated from an example found in: 37-duration.md_example_1 +// Example metadata: {"valid":true} +let msInHour = duration.fromHours(1).milliseconds; +let msInSeconds = duration.fromSeconds(30).milliseconds; +let secondsInDay = duration.fromDays(1).seconds; +let hoursInDay = duration.fromDays(1).hours; +let hoursInMonth = duration.fromMonths(1).hours; +let daysInYear = duration.fromYears(1).days; + +let durations = { + msInHour, + msInSeconds, + secondsInDay, + hoursInDay, + hoursInMonth, + daysInYear +}; + +log(Json.stringify(durations)); diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/cors.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/cors.test.w_test_sim.md index a8f66ecc040..07a13e3d640 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/cors.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/cors.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ cors.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/container/build-failure.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/container/build-failure.test.w_test_sim.md index 06c233cec21..59b4514d014 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/container/build-failure.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/container/build-failure.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ build-failure.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/container/pull-failure.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/container/pull-failure.test.w_test_sim.md index 9c19461a266..4a46d335388 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/container/pull-failure.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/container/pull-failure.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ pull-failure.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-layer.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-layer.test.w_test_sim.md index 95cbedb04fa..50a9a0288bd 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-layer.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-layer.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ aws-layer.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/retention_period.main.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/retention_period.main.w_test_sim.md index c31d897bdd8..6f5f7883de5 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/retention_period.main.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/retention_period.main.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ retention_period.main.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/schedule/init.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/schedule/init.test.w_test_sim.md index 9329ccefd9c..2e84dd08c20 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/schedule/init.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/schedule/init.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ init.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/secret/secret-ref.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/secret/secret-ref.test.w_test_sim.md index 6a6890c6bfc..a17e0fb47d8 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/secret/secret-ref.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/secret/secret-ref.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ secret-ref.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/ui/section.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/ui/section.test.w_test_sim.md index 9d84ad843c0..21048a09ede 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/ui/section.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/ui/section.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ section.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/api_valid_path.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/api_valid_path.test.w_test_sim.md index 0ad1727da58..fe8bad05024 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/api_valid_path.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/api_valid_path.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ api_valid_path.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/app.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/app.test.w_test_sim.md index 93780afbe3b..4f4391fbafd 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/app.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/app.test.w_test_sim.md @@ -6,7 +6,7 @@ root/cloud.TestRunner root/Default pass ─ app.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/asynchronous_model_implicit_await_in_functions.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/asynchronous_model_implicit_await_in_functions.test.w_test_sim.md index 532a3fc5958..a8f9e932b9c 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/asynchronous_model_implicit_await_in_functions.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/asynchronous_model_implicit_await_in_functions.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ asynchronous_model_implicit_await_in_functions.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_alias.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_alias.test.w_test_sim.md index 36b3ceb1553..f6601d517d6 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_alias.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_alias.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ bring_alias.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_awscdk.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_awscdk.test.w_test_sim.md index 72b16eefb1a..dc4d87fdc72 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_awscdk.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_awscdk.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ bring_awscdk.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_cdk8s.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_cdk8s.test.w_test_sim.md index 22ba4693dcc..b6f8dc79dda 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_cdk8s.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_cdk8s.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ bring_cdk8s.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_cdktf.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_cdktf.test.w_test_sim.md index ea552b5f73f..c9f4373a64e 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_cdktf.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_cdktf.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ bring_cdktf.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_extend_non_entry.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_extend_non_entry.test.w_test_sim.md index 25422b28802..8b2a674b09e 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_extend_non_entry.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_extend_non_entry.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ bring_extend_non_entry.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_local_dir.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_local_dir.test.w_test_sim.md index 0d32208c3e1..dfdf8f5e4c6 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_local_dir.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_local_dir.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ bring_local_dir.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_local_normalization.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_local_normalization.test.w_test_sim.md index 870c5e7a78f..ce13e24c550 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_local_normalization.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_local_normalization.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ bring_local_normalization.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_projen.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_projen.test.w_test_sim.md index f6409705f09..51a0b99205d 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_projen.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_projen.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ bring_projen.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bypass_return.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/bypass_return.test.w_test_sim.md index cff56444008..b8b02b80d0c 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bypass_return.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bypass_return.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ bypass_return.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/capture_primitives.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/capture_primitives.test.w_test_sim.md index cd281e71a85..57cc39e8121 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/capture_primitives.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/capture_primitives.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ capture_primitives.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/captures.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/captures.test.w_test_sim.md index d9399f88208..23108eeff2f 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/captures.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/captures.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ captures.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/casting.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/casting.test.w_test_sim.md index 550d8230bd1..489e2078cf4 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/casting.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/casting.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ casting.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/construct-base.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/construct-base.test.w_test_sim.md index 5456400afae..bf4a93816b5 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/construct-base.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/construct-base.test.w_test_sim.md @@ -9,7 +9,7 @@ display name of wing resource: no display name root/Default/WingResource pass ─ construct-base.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/container_types.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/container_types.test.w_test_sim.md index 755172278c4..6f914945fcc 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/container_types.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/container_types.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ container_types.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/custom_obj_id.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/custom_obj_id.test.w_test_sim.md index f148667d72d..df523a6d483 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/custom_obj_id.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/custom_obj_id.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ custom_obj_id.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/expressions_binary_operators.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/expressions_binary_operators.test.w_test_sim.md index 8041cab97e8..a7a6babf9c3 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/expressions_binary_operators.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/expressions_binary_operators.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ expressions_binary_operators.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/file_counter.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/file_counter.test.w_test_sim.md index dc7cb1c6243..942c46827c8 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/file_counter.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/file_counter.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ file_counter.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/for_loop.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/for_loop.test.w_test_sim.md index 27e2d03c9ca..363abd4996f 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/for_loop.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/for_loop.test.w_test_sim.md @@ -102,7 +102,7 @@ for x in (z*2)..0 { ... } <=> x = 2 1 pass ─ for_loop.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/forward_decl.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/forward_decl.test.w_test_sim.md index 40153850891..e6509c3eab4 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/forward_decl.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/forward_decl.test.w_test_sim.md @@ -5,7 +5,7 @@ hi pass ─ forward_decl.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/function_optional_arguments.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/function_optional_arguments.test.w_test_sim.md index 715fc570375..d6d02cc38fc 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/function_optional_arguments.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/function_optional_arguments.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ function_optional_arguments.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/function_type.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/function_type.test.w_test_sim.md index b62b22c5e00..b02779ff9b7 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/function_type.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/function_type.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ function_type.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/function_variadic_arguments.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/function_variadic_arguments.test.w_test_sim.md index 938d40eb0dc..e0129bbb35b 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/function_variadic_arguments.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/function_variadic_arguments.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ function_variadic_arguments.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/hello.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/hello.test.w_test_sim.md index c6c212ead8d..7073be5f85b 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/hello.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/hello.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ hello.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/identical_inflights.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/identical_inflights.test.w_test_sim.md index 15a2b9266d0..b1800b62ea3 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/identical_inflights.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/identical_inflights.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ identical_inflights.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/implicit_std.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/implicit_std.test.w_test_sim.md index 56ad19f3881..28d404449bc 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/implicit_std.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/implicit_std.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ implicit_std.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/in_scope_construct.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/in_scope_construct.test.w_test_sim.md index c9361028660..a3c260b810e 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/in_scope_construct.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/in_scope_construct.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ in_scope_construct.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/indexing.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/indexing.test.w_test_sim.md index e97385e8b22..b85d9bbc001 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/indexing.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/indexing.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ indexing.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inference.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/inference.test.w_test_sim.md index 69946e15ad4..155da9666b4 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inference.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inference.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ inference.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight-subscribers.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight-subscribers.test.w_test_sim.md index 026bc574b4f..508a590f566 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight-subscribers.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight-subscribers.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ inflight-subscribers.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_modifiers.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_modifiers.test.w_test_sim.md index c26d23ce11c..0feff82d6ac 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_modifiers.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_modifiers.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ inflight_class_modifiers.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_closure_inside_preflight_closure.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_closure_inside_preflight_closure.test.w_test_sim.md index cd78c3cc5f6..cbf03503b7f 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_closure_inside_preflight_closure.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_closure_inside_preflight_closure.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ inflight_closure_inside_preflight_closure.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_concat.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_concat.test.w_test_sim.md index 0ab939ef900..434f6718531 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_concat.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_concat.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ inflight_concat.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inheritance_class_preflight.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/inheritance_class_preflight.test.w_test_sim.md index 62036ff1bf1..abfc736ff7a 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inheritance_class_preflight.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inheritance_class_preflight.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ inheritance_class_preflight.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inheritance_interface.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/inheritance_interface.test.w_test_sim.md index eff627d16b6..4ae4b7e7e07 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inheritance_interface.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inheritance_interface.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ inheritance_interface.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/interface.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/interface.test.w_test_sim.md index aa0db75fb97..70711fa6604 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/interface.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/interface.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ interface.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/intrinsics.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/intrinsics.test.w_test_sim.md index b9c87f9eca8..88ee991d5d7 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/intrinsics.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/intrinsics.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ intrinsics.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/json-types.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/json-types.test.w_test_sim.md index 23e376476b8..55f70dc4ae9 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/json-types.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/json-types.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ json-types.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/json.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/json.test.w_test_sim.md index 62f9753bcd7..6af5e511965 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/json.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/json.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ json.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/json_string_interpolation.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/json_string_interpolation.test.w_test_sim.md index 5ccbc1bae36..3e3b1b973ec 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/json_string_interpolation.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/json_string_interpolation.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ json_string_interpolation.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/mut_container_types.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/mut_container_types.test.w_test_sim.md index e850b4ce83c..14977821036 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/mut_container_types.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/mut_container_types.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ mut_container_types.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/namspaced-expr-in-index-expr.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/namspaced-expr-in-index-expr.test.w_test_sim.md index 0f5ee67cfb7..b130d0265bd 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/namspaced-expr-in-index-expr.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/namspaced-expr-in-index-expr.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ namspaced-expr-in-index-expr.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/new_jsii.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/new_jsii.test.w_test_sim.md index 8b41dc88fb9..e0f44b30cda 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/new_jsii.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/new_jsii.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ new_jsii.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/parameters/nested/parameters.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/parameters/nested/parameters.test.w_test_sim.md index 47cde5d0c30..3522707253f 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/parameters/nested/parameters.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/parameters/nested/parameters.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ parameters.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/parameters/simple/parameters.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/parameters/simple/parameters.test.w_test_sim.md index 2ee2352287d..dbd490797d0 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/parameters/simple/parameters.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/parameters/simple/parameters.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ parameters.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/primitive_methods.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/primitive_methods.test.w_test_sim.md index 66384d31867..4cc09dc8104 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/primitive_methods.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/primitive_methods.test.w_test_sim.md @@ -5,7 +5,7 @@ 1:60 pass ─ primitive_methods.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/reassignment.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/reassignment.test.w_test_sim.md index c0c0b6d5ef1..a8eb0db22e1 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/reassignment.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/reassignment.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ reassignment.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/service.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/service.test.w_test_sim.md index a154c66a750..c0e7754ccab 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/service.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/service.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ service.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/sim_resource.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/sim_resource.test.w_test_sim.md index 03bb65bc3e6..777c9af18ca 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/sim_resource.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/sim_resource.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ sim_resource.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/statements_variable_declarations.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/statements_variable_declarations.test.w_test_sim.md index a315409a2a7..12e34f0db1a 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/statements_variable_declarations.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/statements_variable_declarations.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ statements_variable_declarations.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/std_containers.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/std_containers.test.w_test_sim.md index b2a3848d83d..ed807607db9 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/std_containers.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/std_containers.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ std_containers.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/stringify.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/stringify.test.w_test_sim.md index 8dc9d976ff5..bdae47ca8e7 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/stringify.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/stringify.test.w_test_sim.md @@ -10,7 +10,7 @@ A { bar: 'hello' } pass ─ stringify.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/to_inflight.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/to_inflight.test.w_test_sim.md index 26aa3219f79..cf72479ffd1 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/to_inflight.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/to_inflight.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ to_inflight.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/try_catch.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/try_catch.test.w_test_sim.md index 117a5062344..0b38ea71238 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/try_catch.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/try_catch.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ try_catch.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/use_inflight_method_inside_init_closure.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/use_inflight_method_inside_init_closure.test.w_test_sim.md index 552a7a8ba08..50dfd33e68d 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/use_inflight_method_inside_init_closure.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/use_inflight_method_inside_init_closure.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ use_inflight_method_inside_init_closure.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/while.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/while.test.w_test_sim.md index b4aeab05618..e16450f2161 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/while.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/while.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ while.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration diff --git a/tools/hangar/__snapshots__/test_corpus/valid/while_loop_await.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/while_loop_await.test.w_test_sim.md index c12114bd536..9f4060c3060 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/while_loop_await.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/while_loop_await.test.w_test_sim.md @@ -4,7 +4,7 @@ ```log pass ─ while_loop_await.test.wsim (no tests) -Tests 1 passed (1) +Tests (0) Snapshots 1 skipped Test Files 1 passed (1) Duration