Skip to content

Commit

Permalink
tests: Fix tests + update refs
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Dec 21, 2023
1 parent 103b7e0 commit 36734b7
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 10 deletions.
Binary file modified tests/arrows/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/bezier-through/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/bezier-through/test.typ
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
#block(stroke: 2pt + red, canvas(length: .5cm, {
import draw: *

set-style(mark: (start: "<", end: ">", fill: none, size: .3))
set-style(mark: (start: "<", end: ">", stroke: blue, scale: 2))
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))
bezier-through((-1,0), (1,0), (3,0), mark: (start: "<", end: "o", size: .2))
}))
Binary file modified tests/bezier/shorten/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 0 additions & 8 deletions tests/bezier/shorten/test.typ
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@
content((4,0), [#calc.round(o-len - s-len, digits: 2)])
}

#block(stroke: 2pt + red, canvas(length: .5cm, {
import draw: *
line((0,0), (3,3), mark: (start: ">", end: ">", length: 1, width: .8))
line((1,0), (4,3), mark: (start: ">", end: ">", fill: red))
line((2,0), (5,3), mark: (start: "<>", end: "<>", fill: red))
line((3,0), (6,3), mark: (start: "triangle", end: "triangle", harpoon: true, width: .4, length: .6, fill: red))
}))

#for d in (0, .1, .25, .5, 1, 2, 3) {
block(stroke: 2pt + red, canvas(length: .5cm, {
test(-d)
Expand Down
Binary file modified tests/intersection/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/mark/auto-offset/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 36734b7

Please sign in to comment.