diff --git a/.github/workflows/tests-ci.yml b/.github/workflows/tests-ci.yml index 25404d8..87fccdf 100644 --- a/.github/workflows/tests-ci.yml +++ b/.github/workflows/tests-ci.yml @@ -21,8 +21,8 @@ jobs: matrix: # Test for the following Typst versions # 0.11.0 (earliest supported), - # 0.11.1, 0.12.0 (latest supported) - typst-version: [v0.11.0, v0.11.1, v0.12.0] + # 0.11.1, 0.12.0, 0.13.0 (latest supported) + typst-version: [v0.11.0, v0.11.1, v0.12.0, v0.13.0-rc1] # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -48,6 +48,9 @@ jobs: with: typst-version: ${{ matrix.typst-version }} + - name: ℹ️ Check installed Typst version + run: typst --version + - name: 🛠️ Compile integration tests run: | ANSI_RED=$'\e[31m' diff --git a/test/unit/elements/outline/contextual-caption/test.typ b/test/unit/elements/outline/contextual-caption/test.typ index e64028a..ee63ab7 100644 --- a/test/unit/elements/outline/contextual-caption/test.typ +++ b/test/unit/elements/outline/contextual-caption/test.typ @@ -1,7 +1,10 @@ #import "/test/unit/base.typ": template #show: template #set text(5pt) -#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black))) +#let outline-fill = box(width: 1fr, stroke: (bottom: black)) +#set outline(title: box(circle(fill: black, radius: 2.5pt))) +#set outline(fill: outline-fill) if sys.version < version(0, 13, 0) +#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0) #import "/src/lib.typ" as e: field diff --git a/test/unit/elements/outline/contextual-ref/test.typ b/test/unit/elements/outline/contextual-ref/test.typ index 030eb46..0943144 100644 --- a/test/unit/elements/outline/contextual-ref/test.typ +++ b/test/unit/elements/outline/contextual-ref/test.typ @@ -1,7 +1,10 @@ #import "/test/unit/base.typ": template #show: template #set text(5pt) -#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black))) +#let outline-fill = box(width: 1fr, stroke: (bottom: black)) +#set outline(title: box(circle(fill: black, radius: 2.5pt))) +#set outline(fill: outline-fill) if sys.version < version(0, 13, 0) +#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0) #import "/src/lib.typ" as e: field diff --git a/test/unit/elements/outline/count/test.typ b/test/unit/elements/outline/count/test.typ index 06cd1ec..e2d0a67 100644 --- a/test/unit/elements/outline/count/test.typ +++ b/test/unit/elements/outline/count/test.typ @@ -1,7 +1,10 @@ #import "/test/unit/base.typ": template #show: template #set text(5pt) -#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black))) +#let outline-fill = box(width: 1fr, stroke: (bottom: black)) +#set outline(title: box(circle(fill: black, radius: 2.5pt))) +#set outline(fill: outline-fill) if sys.version < version(0, 13, 0) +#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0) #import "/src/lib.typ" as e: field diff --git a/test/unit/elements/outline/custom-ref/test.typ b/test/unit/elements/outline/custom-ref/test.typ index 64f0939..71420ef 100644 --- a/test/unit/elements/outline/custom-ref/test.typ +++ b/test/unit/elements/outline/custom-ref/test.typ @@ -1,7 +1,10 @@ #import "/test/unit/base.typ": template #show: template #set text(5pt) -#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black))) +#let outline-fill = box(width: 1fr, stroke: (bottom: black)) +#set outline(title: box(circle(fill: black, radius: 2.5pt))) +#set outline(fill: outline-fill) if sys.version < version(0, 13, 0) +#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0) #import "/src/lib.typ" as e: field diff --git a/test/unit/elements/outline/simple-caption/test.typ b/test/unit/elements/outline/simple-caption/test.typ index e1535fc..4ed77a5 100644 --- a/test/unit/elements/outline/simple-caption/test.typ +++ b/test/unit/elements/outline/simple-caption/test.typ @@ -1,7 +1,10 @@ #import "/test/unit/base.typ": template #show: template #set text(5pt) -#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black))) +#let outline-fill = box(width: 1fr, stroke: (bottom: black)) +#set outline(title: box(circle(fill: black, radius: 2.5pt))) +#set outline(fill: outline-fill) if sys.version < version(0, 13, 0) +#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0) #import "/src/lib.typ" as e: field diff --git a/test/unit/elements/outline/simple-ref-contextual-caption/test.typ b/test/unit/elements/outline/simple-ref-contextual-caption/test.typ index eea23fd..2fcfbbf 100644 --- a/test/unit/elements/outline/simple-ref-contextual-caption/test.typ +++ b/test/unit/elements/outline/simple-ref-contextual-caption/test.typ @@ -1,7 +1,10 @@ #import "/test/unit/base.typ": template #show: template #set text(5pt) -#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black))) +#let outline-fill = box(width: 1fr, stroke: (bottom: black)) +#set outline(title: box(circle(fill: black, radius: 2.5pt))) +#set outline(fill: outline-fill) if sys.version < version(0, 13, 0) +#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0) #import "/src/lib.typ" as e: field diff --git a/test/unit/elements/outline/simple-ref-simple-caption/test.typ b/test/unit/elements/outline/simple-ref-simple-caption/test.typ index 488b209..cc50527 100644 --- a/test/unit/elements/outline/simple-ref-simple-caption/test.typ +++ b/test/unit/elements/outline/simple-ref-simple-caption/test.typ @@ -1,7 +1,10 @@ #import "/test/unit/base.typ": template #show: template #set text(5pt) -#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black))) +#let outline-fill = box(width: 1fr, stroke: (bottom: black)) +#set outline(title: box(circle(fill: black, radius: 2.5pt))) +#set outline(fill: outline-fill) if sys.version < version(0, 13, 0) +#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0) #import "/src/lib.typ" as e: field diff --git a/test/unit/elements/outline/simple-ref/test.typ b/test/unit/elements/outline/simple-ref/test.typ index 0450194..ed778c9 100644 --- a/test/unit/elements/outline/simple-ref/test.typ +++ b/test/unit/elements/outline/simple-ref/test.typ @@ -1,7 +1,10 @@ #import "/test/unit/base.typ": template #show: template #set text(5pt) -#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black))) +#let outline-fill = box(width: 1fr, stroke: (bottom: black)) +#set outline(title: box(circle(fill: black, radius: 2.5pt))) +#set outline(fill: outline-fill) if sys.version < version(0, 13, 0) +#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0) #import "/src/lib.typ" as e: field diff --git a/test/unit/types/custom/cast/test.typ b/test/unit/types/custom/cast/test.typ index fdd3ebc..e4b7e32 100644 --- a/test/unit/types/custom/cast/test.typ +++ b/test/unit/types/custom/cast/test.typ @@ -32,6 +32,6 @@ #assert.eq(cast(95.6, person), (true, person("Generic", 95))) #assert.eq(cast(gradient.linear(red, blue, green), person), (true, person("Generic 2", 100, border: gradient.linear(red, blue, green)))) #assert.eq(cast(int, person), (true, person("Joseph", 50))) -#assert.eq(cast("abc", person), (false, "expected person, integer, float, stroke, length, color, gradient, pattern, dictionary, type or function, found string")) +#assert.eq(cast("abc", person), (false, "expected person, integer, float, stroke, length, color, gradient, " + str(types.native.tiling) + ", dictionary, type or function, found string")) #assert.eq(cast(5.0, person), (false, "all casts to custom type 'person' failed\n hint (large float): value must be larger than 5")) #assert.eq(cast(float, person), (false, "all casts to custom type 'person' failed\n hint (large float): value must be larger than 5"))