You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
290 B
11 lines
290 B
8 months ago
|
import pytest
|
||
|
|
||
|
from pybtex.markup import LaTeXParser
|
||
|
from pybtex.scanner import PybtexSyntaxError
|
||
|
|
||
|
|
||
|
@pytest.mark.parametrize(["bad_input"], [("abc{def}}",), ("abc{def}{",)])
|
||
|
def test_syntax_error(bad_input):
|
||
|
with pytest.raises(PybtexSyntaxError):
|
||
|
LaTeXParser(bad_input).parse()
|