Coverage for skema/program_analysis/CAST/matlab/tests/test_command.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.5.0, created at 2024-04-30 17:15 +0000

1from skema.program_analysis.CAST.matlab.tests.utils import (check, cast) 

2from skema.program_analysis.CAST2FN.model.cast import Call 

3 

4def test_command(): 

5 """ Test the MATLAB command syntax elements""" 

6 nodes = cast("clear all;") 

7 check(nodes[0], Call(func = "clear", arguments=["all"])) 

8 

9def test_command_no_args(): 

10 """ Test the MATLAB command syntax elements""" 

11 nodes = cast("validate;") 

12 check(nodes[0], Call(func = "validate", arguments=[]))