@@ -399,14 +399,8 @@ def test_parse_if_must_start_in_a_new_line(self):
399399 def test_parse_with_ending_binary_error (self ):
400400 result = parser .parse_str (
401401 """
402- ;; Remove the boolean normalization if it's done after calling
403- ;; certain routines that return the bool result already normalized.
404-
405- ;; The sequence
406- ;; sub 1
407- ;; sbc a, a
408- ;; inc a
409- ;; can be removed
402+ ;; Sample Comment
403+ ;;
410404
411405 OLEVEL: 1
412406 OFLAG: 20
@@ -428,15 +422,6 @@ def test_parse_with_ending_binary_error(self):
428422 def test_parse_with_comma_error (self ):
429423 result = parser .parse_str (
430424 """
431- ;; Remove the boolean normalization if it's done after calling
432- ;; certain routines that return the bool result already normalized.
433-
434- ;; The sequence
435- ;; sub 1
436- ;; sbc a, a
437- ;; inc a
438- ;; can be removed
439-
440425 OLEVEL: 1
441426 OFLAG: 20
442427
@@ -458,15 +443,6 @@ def test_parse_with_comma_error(self):
458443 def test_parse_with_nested_comma_error (self ):
459444 result = parser .parse_str (
460445 """
461- ;; Remove the boolean normalization if it's done after calling
462- ;; certain routines that return the bool result already normalized.
463-
464- ;; The sequence
465- ;; sub 1
466- ;; sbc a, a
467- ;; inc a
468- ;; can be removed
469-
470446 OLEVEL: 1
471447 OFLAG: 20
472448
@@ -484,3 +460,43 @@ def test_parse_with_nested_comma_error(self):
484460 """
485461 )
486462 assert result is None
463+
464+ def test_parse_with_list_error (self ):
465+ result = parser .parse_str (
466+ """
467+ OLEVEL: 1
468+ OFLAG: 20
469+
470+ REPLACE {{
471+ $1
472+ }}
473+
474+ WITH {{
475+ }}
476+
477+ IF {{
478+ $1 IN ("x", "y" . "pera")
479+ }}
480+ """
481+ )
482+ assert result is None
483+
484+ def test_parse_with_list_error2 (self ):
485+ result = parser .parse_str (
486+ """
487+ OLEVEL: 1
488+ OFLAG: 20
489+
490+ REPLACE {{
491+ $1
492+ }}
493+
494+ WITH {{
495+ }}
496+
497+ IF {{
498+ $1 IN ("x", , , "pera")
499+ }}
500+ """
501+ )
502+ assert result is None
0 commit comments