diff options
Diffstat (limited to 'lib/assert-aeq.typ')
| -rw-r--r-- | lib/assert-aeq.typ | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/assert-aeq.typ b/lib/assert-aeq.typ new file mode 100644 index 0000000..70b9e64 --- /dev/null +++ b/lib/assert-aeq.typ @@ -0,0 +1,3 @@ +#let assert-aeq(left, right, precision: calc.pow(10, -6)) = { + assert(calc.abs(left - right) < precision) +} |
