@@ -44,8 +44,8 @@ def test_line1(capsys: CaptureFixture[str]):
4444 "file" : "tests/data/line/hello3.pdl" ,
4545 "errors" : [
4646 "" ,
47- "tests/data/line/hello3.pdl:6 - Type errors during spec checking:" ,
48- "tests/data/line/hello3.pdl:6 - World! should be of type <class 'int'>" ,
47+ "tests/data/line/hello3.pdl:7 - Type errors during spec checking:" ,
48+ "tests/data/line/hello3.pdl:7 - World! should be of type <class 'int'>" ,
4949 ],
5050}
5151
@@ -100,8 +100,8 @@ def test_line8(capsys: CaptureFixture[str]):
100100 "file" : "tests/data/line/hello9.pdl" ,
101101 "errors" : [
102102 "" ,
103- "tests/data/line/hello9.pdl:3 - Type errors during spec checking:" ,
104- "tests/data/line/hello9.pdl:3 - hello should be of type <class 'int'>" ,
103+ "tests/data/line/hello9.pdl:4 - Type errors during spec checking:" ,
104+ "tests/data/line/hello9.pdl:4 - hello should be of type <class 'int'>" ,
105105 ],
106106}
107107
@@ -140,8 +140,8 @@ def test_line11(capsys: CaptureFixture[str]):
140140 "file" : "tests/data/line/hello12.pdl" ,
141141 "errors" : [
142142 "" ,
143- "tests/data/line/hello12.pdl:9 - Type errors during spec checking:" ,
144- "tests/data/line/hello12.pdl:9 - How are you? should be of type <class 'bool'>" ,
143+ "tests/data/line/hello12.pdl:11 - Type errors during spec checking:" ,
144+ "tests/data/line/hello12.pdl:11 - How are you? should be of type <class 'bool'>" ,
145145 ],
146146}
147147
@@ -154,8 +154,8 @@ def test_line12(capsys: CaptureFixture[str]):
154154 "file" : "tests/data/line/hello13.pdl" ,
155155 "errors" : [
156156 "" ,
157- "tests/data/line/hello13.pdl:9 - Type errors during spec checking:" ,
158- "tests/data/line/hello13.pdl:9 - 1 should be of type <class 'str'>" ,
157+ "tests/data/line/hello13.pdl:12 - Type errors during spec checking:" ,
158+ "tests/data/line/hello13.pdl:12 - 1 should be of type <class 'str'>" ,
159159 ],
160160}
161161
@@ -195,8 +195,8 @@ def test_line15(capsys: CaptureFixture[str]):
195195 "file" : "tests/data/line/hello16.pdl" ,
196196 "errors" : [
197197 "" ,
198- "tests/data/line/hello16.pdl:8 - Type errors during spec checking:" ,
199- "tests/data/line/hello16.pdl:8 - 30 should be of type <class 'str'>" ,
198+ "tests/data/line/hello16.pdl:10 - Type errors during spec checking:" ,
199+ "tests/data/line/hello16.pdl:10 - 30 should be of type <class 'str'>" ,
200200 ],
201201}
202202
@@ -209,8 +209,8 @@ def test_line16(capsys: CaptureFixture[str]):
209209 "file" : "tests/data/line/hello17.pdl" ,
210210 "errors" : [
211211 "" ,
212- "tests/data/line/hello17.pdl:3 - Type errors during spec checking:" ,
213- "tests/data/line/hello17.pdl:3 - hello should be of type <class 'int'>" ,
212+ "tests/data/line/hello17.pdl:4 - Type errors during spec checking:" ,
213+ "tests/data/line/hello17.pdl:4 - hello should be of type <class 'int'>" ,
214214 ],
215215}
216216
@@ -405,3 +405,17 @@ def test_line30(capsys: CaptureFixture[str]):
405405
406406def test_line31 (capsys : CaptureFixture [str ]):
407407 do_test (line31 , capsys )
408+
409+
410+ line32 = {
411+ "file" : "tests/data/line/hello32.pdl" ,
412+ "errors" : [
413+ "" ,
414+ "tests/data/line/hello32.pdl:4 - Type errors during spec checking:" ,
415+ "tests/data/line/hello32.pdl:4 - 1 should be of type <class 'str'>" ,
416+ ],
417+ }
418+
419+
420+ def test_line32 (capsys : CaptureFixture [str ]):
421+ do_test (line32 , capsys )
0 commit comments