Skip to content

Commit c8acda0

Browse files
added comment test in muliline string
1 parent 6b99933 commit c8acda0

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

tests/evaluation_7.rules

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require "reject";
2+
3+
#testcomment1
4+
5+
if header "from" "coyote@desert.example.org" # testcomment2
6+
{
7+
reject text: # testcomment3
8+
I do not accept messages from/* this is
9+
not a comment */this address.
10+
..
11+
.
12+
;
13+
}

tests/test_evaluation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_evaulation():
2727
("evaluation_1.msg", "evaluation_4.rules", [('reject', 'I do not accept messages from this address.')]),
2828
("evaluation_1.msg", "evaluation_5.rules", [('reject', 'I do not accept messages from\nthis address.\n.\n')]),
2929
("evaluation_1.msg", "evaluation_6.rules", [('reject', 'I do not accept messages from this address.')]),
30+
("evaluation_1.msg", "evaluation_7.rules", [('reject', 'I do not accept messages from/* this is\nnot a comment */this address.\n.\n')]),
3031
)
3132

3233
for messagefile, rulefile, evaluated_rules in EVAL_RESULTS:

0 commit comments

Comments
 (0)