diff --git a/tests/reference/asr-test_list_const-4ffce80.json b/tests/reference/asr-test_list_const-4ffce80.json deleted file mode 100644 index d707248f23..0000000000 --- a/tests/reference/asr-test_list_const-4ffce80.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "basename": "asr-test_list_const-4ffce80", - "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", - "infile": "tests/../integration_tests/test_list_const.py", - "infile_hash": "f2918a01e7e8a190f97d10ae208627d34944ee9d57aa98e01a239d1d", - "outfile": null, - "outfile_hash": null, - "stdout": "asr-test_list_const-4ffce80.stdout", - "stdout_hash": "1f4d504cea56850fcaa47eac751b413ce6644e36da970c1a1ad26289", - "stderr": null, - "stderr_hash": null, - "returncode": 0 -} \ No newline at end of file diff --git a/tests/reference/asr-test_list_const-4ffce80.stdout b/tests/reference/asr-test_list_const-4ffce80.stdout deleted file mode 100644 index d57c133ec6..0000000000 --- a/tests/reference/asr-test_list_const-4ffce80.stdout +++ /dev/null @@ -1,270 +0,0 @@ -(TranslationUnit - (SymbolTable - 1 - { - __main__: - (Module - (SymbolTable - 2 - { - __main__global_stmts: - (Function - (SymbolTable - 4 - { - - }) - __main__global_stmts - (FunctionType - [] - () - Source - Implementation - () - .false. - .false. - .false. - .false. - .false. - [] - .false. - ) - [test_list_const] - [] - [(SubroutineCall - 2 test_list_const - () - [] - () - )] - () - Public - .false. - .false. - () - ), - test_list_const: - (Function - (SymbolTable - 3 - { - CONST_INTEGER_LIST: - (Variable - 3 - CONST_INTEGER_LIST - [] - Local - (ListConstant - [(IntegerConstant 1 (Integer 4)) - (IntegerConstant 2 (Integer 4)) - (IntegerConstant 3 (Integer 4)) - (IntegerConstant 4 (Integer 4)) - (IntegerConstant 5 (Integer 4)) - (IntegerConstant 1 (Integer 4))] - (List - (Integer 4) - ) - ) - (ListConstant - [(IntegerConstant 1 (Integer 4)) - (IntegerConstant 2 (Integer 4)) - (IntegerConstant 3 (Integer 4)) - (IntegerConstant 4 (Integer 4)) - (IntegerConstant 5 (Integer 4)) - (IntegerConstant 1 (Integer 4))] - (List - (Integer 4) - ) - ) - Parameter - (Const - (List - (Integer 4) - ) - ) - () - Source - Public - Required - .false. - ), - CONST_STRING_LIST: - (Variable - 3 - CONST_STRING_LIST - [] - Local - (ListConstant - [(StringConstant - "ALPHA" - (Character 1 5 ()) - ) - (StringConstant - "BETA" - (Character 1 4 ()) - ) - (StringConstant - "RELEASE" - (Character 1 7 ()) - )] - (List - (Character 1 5 ()) - ) - ) - (ListConstant - [(StringConstant - "ALPHA" - (Character 1 5 ()) - ) - (StringConstant - "BETA" - (Character 1 4 ()) - ) - (StringConstant - "RELEASE" - (Character 1 7 ()) - )] - (List - (Character 1 5 ()) - ) - ) - Parameter - (Const - (List - (Character 1 -2 ()) - ) - ) - () - Source - Public - Required - .false. - ) - }) - test_list_const - (FunctionType - [] - () - Source - Implementation - () - .false. - .false. - .false. - .false. - .false. - [] - .false. - ) - [] - [] - [(Assert - (IntegerCompare - (ListCount - (Var 3 CONST_INTEGER_LIST) - (IntegerConstant 1 (Integer 4)) - (Integer 4) - () - ) - Eq - (IntegerConstant 2 (Integer 4)) - (Logical 4) - () - ) - () - ) - (Assert - (IntegerCompare - (IntrinsicScalarFunction - ListIndex - [(Var 3 CONST_INTEGER_LIST) - (IntegerConstant 1 (Integer 4))] - 0 - (Integer 4) - () - ) - Eq - (IntegerConstant 0 (Integer 4)) - (Logical 4) - () - ) - () - ) - (Assert - (IntegerCompare - (ListCount - (Var 3 CONST_STRING_LIST) - (StringConstant - "ALPHA" - (Character 1 5 ()) - ) - (Integer 4) - () - ) - Eq - (IntegerConstant 1 (Integer 4)) - (Logical 4) - () - ) - () - ) - (Assert - (IntegerCompare - (IntrinsicScalarFunction - ListIndex - [(Var 3 CONST_STRING_LIST) - (StringConstant - "RELEASE" - (Character 1 7 ()) - )] - 0 - (Integer 4) - () - ) - Eq - (IntegerConstant 2 (Integer 4)) - (Logical 4) - () - ) - () - )] - () - Public - .false. - .false. - () - ) - }) - __main__ - [] - .false. - .false. - ), - main_program: - (Program - (SymbolTable - 5 - { - __main__global_stmts: - (ExternalSymbol - 5 - __main__global_stmts - 2 __main__global_stmts - __main__ - [] - __main__global_stmts - Public - ) - }) - main_program - [__main__] - [(SubroutineCall - 5 __main__global_stmts - 2 __main__global_stmts - [] - () - )] - ) - }) - [] -) diff --git a/tests/reference/asr-test_list_const-7b77194.json b/tests/reference/asr-test_list_const-7b77194.json deleted file mode 100644 index 6eea12bb5f..0000000000 --- a/tests/reference/asr-test_list_const-7b77194.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "basename": "asr-test_list_const-7b77194", - "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", - "infile": "tests/errors/test_list_const.py", - "infile_hash": "794f98a9e575bf64082d76c78f2466bf023c8b3f9432fdf3ec8fe866", - "outfile": null, - "outfile_hash": null, - "stdout": null, - "stdout_hash": null, - "stderr": "asr-test_list_const-7b77194.stderr", - "stderr_hash": "d18d6fde09df77a8af0b7b1f15e05aeb6b02e79c62ab97c5af79305d", - "returncode": 2 -} \ No newline at end of file diff --git a/tests/reference/asr-test_list_const-7b77194.stderr b/tests/reference/asr-test_list_const-7b77194.stderr deleted file mode 100644 index 8aaf7efa45..0000000000 --- a/tests/reference/asr-test_list_const-7b77194.stderr +++ /dev/null @@ -1,5 +0,0 @@ -semantic error: cannot append element to a const list - --> tests/errors/test_list_const.py:6:5 - | -6 | CONST_INTEGER_LIST.append(6) - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/reference/asr-test_list_count-4b42498.json b/tests/reference/asr-test_list_count-4b42498.json index e81357ef04..f4864b55fb 100644 --- a/tests/reference/asr-test_list_count-4b42498.json +++ b/tests/reference/asr-test_list_count-4b42498.json @@ -5,9 +5,9 @@ "infile_hash": "01975bd7c4bba02fd811de536b218167da99b532fa955b7bf8339779", "outfile": null, "outfile_hash": null, - "stdout": "asr-test_list_count-4b42498.stdout", - "stdout_hash": "ebd75d7827b11fc01b497b61de99801051d36fe38fb2353a83eac7fa", - "stderr": null, - "stderr_hash": null, - "returncode": 0 + "stdout": null, + "stdout_hash": null, + "stderr": "asr-test_list_count-4b42498.stderr", + "stderr_hash": "f26efcc623b68ca43ef871eb01c8e3cbd1ae464baaa491c6e4969696", + "returncode": 2 } \ No newline at end of file diff --git a/tests/reference/asr-test_list_count-4b42498.stdout b/tests/reference/asr-test_list_count-4b42498.stdout deleted file mode 100644 index f78bcd64b9..0000000000 --- a/tests/reference/asr-test_list_count-4b42498.stdout +++ /dev/null @@ -1,117 +0,0 @@ -(TranslationUnit - (SymbolTable - 1 - { - __main__: - (Module - (SymbolTable - 2 - { - test_list_count_error: - (Function - (SymbolTable - 3 - { - __lcompilers_dummy: - (Variable - 3 - __lcompilers_dummy - [] - Local - () - () - Default - (Integer 4) - () - Source - Public - Required - .false. - ), - a: - (Variable - 3 - a - [] - Local - () - () - Default - (List - (Integer 4) - ) - () - Source - Public - Required - .false. - ) - }) - test_list_count_error - (FunctionType - [] - () - Source - Implementation - () - .false. - .false. - .false. - .false. - .false. - [] - .false. - ) - [] - [] - [(= - (Var 3 a) - (ListConstant - [(IntegerConstant 1 (Integer 4)) - (IntegerConstant 2 (Integer 4)) - (IntegerConstant 3 (Integer 4))] - (List - (Integer 4) - ) - ) - () - ) - (= - (Var 3 __lcompilers_dummy) - (ListCount - (Var 3 a) - (RealConstant - 1.000000 - (Real 8) - ) - (Integer 4) - () - ) - () - )] - () - Public - .false. - .false. - () - ) - }) - __main__ - [] - .false. - .false. - ), - main_program: - (Program - (SymbolTable - 4 - { - - }) - main_program - [] - [] - ) - }) - [] -) diff --git a/tests/reference/runtime-test_list_const-0ca4829.json b/tests/reference/runtime-test_list_const-0ca4829.json deleted file mode 100644 index ff13081949..0000000000 --- a/tests/reference/runtime-test_list_const-0ca4829.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "basename": "runtime-test_list_const-0ca4829", - "cmd": "lpython {infile}", - "infile": "tests/errors/test_list_const.py", - "infile_hash": "794f98a9e575bf64082d76c78f2466bf023c8b3f9432fdf3ec8fe866", - "outfile": null, - "outfile_hash": null, - "stdout": null, - "stdout_hash": null, - "stderr": "runtime-test_list_const-0ca4829.stderr", - "stderr_hash": "be9de860495ffefe5254883bbf042bf04f698ea68e76516dc98fdbff", - "returncode": 2 -} \ No newline at end of file diff --git a/tests/reference/runtime-test_list_const-0ca4829.stderr b/tests/reference/runtime-test_list_const-0ca4829.stderr deleted file mode 100644 index 8c393dce1a..0000000000 --- a/tests/reference/runtime-test_list_const-0ca4829.stderr +++ /dev/null @@ -1,5 +0,0 @@ -semantic error: cannot append element to a const list - --> tests/errors/test_list_const.py:6:5 - | -6 | CONST_INTEGER_LIST.append(6) - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^