File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ CONSTANT Pi: Number := 3.141592653589793238462643383279503
22
22
| http://mathworld.wolfram.com/AbsoluteValue.html
23
23
|
24
24
| Example :
25
- | ASSERT math.abs (-5 ) = 5
25
+ | > ASSERT math.abs (-5 ) = 5
26
26
|%
27
27
DECLARE NATIVE FUNCTION abs (x : Number ): Number
28
28
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def check_file_neon(fn, source):
36
36
doc = itertools .dropwhile (lambda x : "Example:" not in x , [x [1 ] for x in full ])
37
37
try :
38
38
next (doc )
39
- test ("IMPORT {}\n " .format (os .path .basename (fn )[:- 5 ]) + "\n " .join (x [ 3 :] for x in doc ))
39
+ test ("IMPORT {}\n " .format (os .path .basename (fn )[:- 5 ]) + "\n " .join (re . sub ( r"^ \|\s*[>:|]" , "" , x ) for x in doc if x . startswith ( " | " ) ))
40
40
except StopIteration :
41
41
firstline = next (itertools .dropwhile (lambda x : not x [1 ][3 :].strip (), full ))
42
42
undocumented .append ("no example in {}:{} for {}" .format (fn , firstline [0 ], firstline [1 ][3 :].strip ()))
You can’t perform that action at this time.
0 commit comments