tests: test single-line comment for unquoted attribute (MR 2149)

This commit is contained in:
Alexey Min 2021-12-12 15:44:43 +03:00
parent 58e4e86b6b
commit 89350b69b6
No known key found for this signature in database
GPG Key ID: 0B19D2A65870B448
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,9 @@ def test_parse_attributes():
assert func("pkgname", 'pkgname="test" # random comment\npkgrel=3') == \
(True, "test", 0)
assert func("pkgver", 'pkgver=2.37 # random comment\npkgrel=3') == \
(True, "2.37", 0)
assert func("depends", "depends='\nfirst\nsecond\nthird\n'#") == \
(True, "first second third", 4)