Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bindreams committed May 2, 2024
1 parent b30dcbd commit 7241526
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging

from zint import Seg, Symbol, Symbology
from zint import InputMode, Seg, Symbol, Symbology


def test_basic_usage():
Expand Down Expand Up @@ -62,3 +62,9 @@ def test_vector():
for _ in s.vector.circles:
size += 1
assert size == len(s.vector.circles)


def test_input_mode():
"""Test that the input_mode is assignable from an enum."""
s = Symbol()
s.input_mode |= InputMode.UNICODE

0 comments on commit 7241526

Please sign in to comment.