mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-21 11:53:32 +01:00
Missing parenteses in assert detected
This commit is contained in:
parent
78eb6dae1b
commit
711eb39eb9
@ -522,6 +522,8 @@ def irp_simple_statements(text):
|
|||||||
def process_assert(line):
|
def process_assert(line):
|
||||||
assert type(line) == Assert
|
assert type(line) == Assert
|
||||||
if command_line.do_assert:
|
if command_line.do_assert:
|
||||||
|
if '(' not in line.text or ')' not in line.text:
|
||||||
|
error.fail(line,"Syntax error in ASSERT statement (parentheses)")
|
||||||
condition = "(%s"%(line.text.split('(',1)[1])
|
condition = "(%s"%(line.text.split('(',1)[1])
|
||||||
if condition == "":
|
if condition == "":
|
||||||
error.fail(line,"Error in Assert statement")
|
error.fail(line,"Error in Assert statement")
|
||||||
|
Loading…
Reference in New Issue
Block a user