Project

General

Profile

« Previous | Next » 

Revision bd25d776

Added by Christophe Garion over 2 years ago

  • ID bd25d77628dd9598aea81642f367e9019e36100e
  • Parent 0ac53ee0

stateflow: add unit tests for JSON parser

View differences:

stateflow_json/lustrec/simple-var-bool-false.json
1
{
2
    "data": [
3
        {
4
            "datatype": "bool",
5
            "initial_value": "false",
6
            "name": "my_bool_var_false",
7
            "scope": "Output"
8
        }
9
    ],
10
    "junctions": [],
11
    "name": "simple_var_bool_false",
12
    "origin_path": "simple_var_bool_false",
13
    "sffunctions": [],
14
    "states": []
15
}
stateflow_json/lustrec/simple-var-bool-true.json
1
{
2
    "data": [
3
        {
4
            "datatype": "bool",
5
            "initial_value": "true",
6
            "name": "my_bool_var_true",
7
            "scope": "Input"
8
        }
9
    ],
10
    "junctions": [],
11
    "name": "simple_var_bool_true",
12
    "origin_path": "simple_var_bool_true",
13
    "sffunctions": [],
14
    "states": []
15
}
stateflow_json/lustrec/simple-var-int-neg.json
1
{
2
    "data": [
3
        {
4
            "datatype": "int",
5
            "initial_value": "-5",
6
            "name": "my_int_var_neg",
7
            "scope": "Output"
8
        }
9
    ],
10
    "junctions": [],
11
    "name": "simple_var_int_neg",
12
    "origin_path": "simple_var_int_neg",
13
    "sffunctions": [],
14
    "states": []
15
}
stateflow_json/lustrec/simple-var-int-pos.json
1
{
2
    "data": [
3
        {
4
            "datatype": "int",
5
            "initial_value": "2",
6
            "name": "my_int_var_pos",
7
            "scope": "Output"
8
        }
9
    ],
10
    "junctions": [],
11
    "name": "simple_var_int_pos",
12
    "origin_path": "simple_var_int_pos",
13
    "sffunctions": [],
14
    "states": []
15
}
stateflow_json/lustrec/simple-var-int-zero.json
1
{
2
    "data": [
3
        {
4
            "datatype": "int",
5
            "initial_value": "0",
6
            "name": "my_int_var_zero",
7
            "scope": "Output"
8
        }
9
    ],
10
    "junctions": [],
11
    "name": "simple_var_int_zero",
12
    "origin_path": "simple_var_int_zero",
13
    "sffunctions": [],
14
    "states": []
15
}
stateflow_json/lustrec/simple-var-real-neg.json
1
{
2
    "data": [
3
        {
4
            "datatype": "real",
5
            "initial_value": "-2.24",
6
            "name": "my_real_var_neg",
7
            "scope": "Output"
8
        }
9
    ],
10
    "junctions": [],
11
    "name": "simple_var_real_neg",
12
    "origin_path": "simple_var_real_neg",
13
    "sffunctions": [],
14
    "states": []
15
}
stateflow_json/lustrec/simple-var-real-pos.json
1
{
2
    "data": [
3
        {
4
            "datatype": "real",
5
            "initial_value": "21.15",
6
            "name": "my_real_var_pos",
7
            "scope": "Output"
8
        }
9
    ],
10
    "junctions": [],
11
    "name": "simple_var_real_pos",
12
    "origin_path": "simple_var_real_pos",
13
    "sffunctions": [],
14
    "states": []
15
}
stateflow_json/lustrec/simple-var-real-wo-dec.json
1
{
2
    "data": [
3
        {
4
            "datatype": "real",
5
            "initial_value": "2500",
6
            "name": "my_real_var_wo_dec",
7
            "scope": "Output"
8
        }
9
    ],
10
    "junctions": [],
11
    "name": "simple_var_real_wo_dec",
12
    "origin_path": "simple_var_real_wo_dec",
13
    "sffunctions": [],
14
    "states": []
15
}
stateflow_json/lustrec/simple-var-real-zero.json
1
{
2
    "data": [
3
        {
4
            "datatype": "real",
5
            "initial_value": "0.0",
6
            "name": "my_real_var_zero",
7
            "scope": "Output"
8
        }
9
    ],
10
    "junctions": [],
11
    "name": "simple_var_real_zero",
12
    "origin_path": "simple_var_real_zero",
13
    "sffunctions": [],
14
    "states": []
15
}

Also available in: Unified diff