Skip to content

Commit

Permalink
tests: Update typst-test to tytanic
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Feb 7, 2025
1 parent c31669f commit 183dc18
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ jobs:
uses: baptiste0928/cargo-install@v3
with:
crate: just
- name: Install typst-test from github
uses: baptiste0928/cargo-install@v3
- name: Install tytanic
uses: baptiste0928/cargo-install@v2.2.0
with:
crate: typst-test
git: https://github.com/tingerrr/typst-test.git
tag: ci-semi-stable
crate: tytanic
- uses: typst-community/setup-typst@v3
with:
typst-version: '0.12.0'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ To install `just` on your system, use your systems package manager. On Windows,

This package comes with some unit tests under the `tests` directory.
To run all tests you can run the `just test` target. You need to have
[`typst-test`](https://github.com/tingerrr/typst-test/) in your `PATH`: `cargo install typst-test --git https://github.com/tingerrr/typst-test`.
[`tytanic`](https://github.com/tingerrr/tytanic/) in your `PATH`: `cargo install tytanic`.

## Projects using CeTZ
- [cirCeTZ](https://github.com/fenjalien/cirCeTZ) A port of [circuitikz](https://github.com/circuitikz/circuitikz) to Typst.
Expand Down
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ install target="@local":
./common/scripts/package "{{target}}"

test *filter:
typst-test run {{filter}}
tytanic run {{filter}}

update-test *filter:
typst-test update {{filter}}
tytanic update {{filter}}

gallery:
for f in "{{gallery_dir}}"/*.typ; do typst c "$f" "${f/typ/png}"; done
9 changes: 0 additions & 9 deletions tests/bezier-through/test.typ
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,3 @@
bezier-through((0, -1), (-calc.cos(45deg), -calc.sin(45deg)), (-1, 0))
})
})

#test-case({
import draw: *

set-style(mark: (start: "<", end: ">", stroke: blue, scale: 1))
bezier-through((-1,0), (1,0), (3,0), mark: (start: "<", end: "o", size: .2))
bezier-through((.5,0), (1,1), (1.5,0))
bezier-through((0,0), (1,-2), (2,0), mark: (start: "|", end: "<", size: .5))
})

0 comments on commit 183dc18

Please sign in to comment.