Skip to content
This repository was archived by the owner on Nov 22, 2025. It is now read-only.

Commit c6235de

Browse files
authored
Consolidate most examples data into a YAML file (#53)
1 parent d85fc00 commit c6235de

20 files changed

Lines changed: 213 additions & 76 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
run: cargo install --locked --path .
9292
# partially covered by tests/cli.rs, but this checks the shebang
9393
- name: Check output of hello example
94-
run: examples/hello.qn | git diff --no-index examples/run/out/hello.txt -
94+
run: diff <(examples/hello.qn) <(echo 'Hello, world!')
9595
- name: Upload quench for next job
9696
uses: actions/upload-artifact@v2
9797
with:

Cargo.lock

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,6 @@ goldenfile = "1"
5252
itertools = "0.10"
5353
pretty_assertions = "0.7"
5454
regex = "1"
55+
serde = "1"
56+
serde_yaml = "0.8"
5557
toml = "0.5"
56-
yaml-rust = "0.4"

examples/compile/err/complicated.txt

Whitespace-only changes.

examples/compile/err/hello.txt

Whitespace-only changes.

examples/compile/err/hello_syntax_errors.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/compile/out/hello_syntax_errors.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)