summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_init.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_init.py b/tests/test_init.py
new file mode 100644
index 0000000..107caf5
--- /dev/null
+++ b/tests/test_init.py
@@ -0,0 +1,11 @@
+from asciidoc import set_compat_mode
+import pytest
+
+
+@pytest.mark.parametrize(
+ 'inp',
+ (0, 3)
+)
+def test_invalid_compat_mode(inp) -> None:
+ with pytest.raises(ValueError):
+ set_compat_mode(inp)