Skip to content

Commit

Permalink
tests: Add test for min. cetz version compat
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Jun 26, 2024
1 parent d6f57c6 commit b66161d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/tests/**/*.pdf
/tests/**/out/*
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CeTZ Venn

A CeTZ library for drawing simple two- or three-set Venn diagrams.
A [CeTZ](https://github.com/cetz-package/cetz) library for drawing simple two- or three-set Venn diagrams.

## Examples
<!-- img width is set so the table gets evenly spaced by GitHubs css -->
Expand All @@ -24,11 +24,13 @@ A CeTZ library for drawing simple two- or three-set Venn diagrams.

## Usage

For information, see the [manual (stable)](https://github.com/johannes-wolf/cetz-venn/blob/stable/manual.pdf?raw=true).
This package requires CeTZ version >= 0.2.0!

For information, see the [manual (stable)](https://github.com/cetz-package/cetz-venn/blob/stable/manual.pdf?raw=true).

To use this package, simply add the following code to your document:
```
#import "@preview/cetz:0.2.1"
#import "@preview/cetz:0.2.2"
#import "@preview/cetz-venn:0.1.0"
#cetz.canvas({
Expand Down
Binary file added tests/cetz-version/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions tests/cetz-version/test.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#set page(width: auto, height: auto)
#import "/src/lib.typ": venn2, venn3
#import "/tests/helper.typ": *

// Import the minimum supported cetz version
#import "@preview/cetz:0.2.0"

#import cetz.draw: content, set-style

#test-case({
venn2()
})

#test-case({
venn3()
})

0 comments on commit b66161d

Please sign in to comment.