Skip to content

Commit 1198a3d

Browse files
ubaidskcertik
authored andcommitted
Refactor: Use common naming seq for unary op tests
Update existing unary operator integration tests accordingly TEST: Update reference tests
1 parent f902d38 commit 1198a3d

12 files changed

+14
-14
lines changed

integration_tests/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,12 +552,12 @@ RUN(NAME test_ConstantEllipsis LABLES cpython llvm c)
552552
RUN(NAME test_max_min LABELS cpython llvm c)
553553
RUN(NAME test_global LABELS cpython llvm c)
554554
RUN(NAME test_global_decl LABELS cpython llvm c)
555-
RUN(NAME test_integer_bitnot LABELS cpython llvm c wasm)
556-
RUN(NAME test_unsign_int_bitnot LABELS cpython llvm c)
557555
RUN(NAME test_ifexp_01 LABELS cpython llvm c)
558556
RUN(NAME test_ifexp_02 LABELS cpython llvm c)
559-
RUN(NAME test_unary_minus LABELS cpython llvm c)
560-
RUN(NAME test_unary_plus LABELS cpython llvm c)
557+
RUN(NAME test_unary_op_01 LABELS cpython llvm c) # unary minus
558+
RUN(NAME test_unary_op_02 LABELS cpython llvm c) # unary plus
559+
RUN(NAME test_unary_op_03 LABELS cpython llvm c wasm) # unary bitinvert
560+
RUN(NAME test_unary_op_04 LABELS cpython llvm c) # unary bitinvert
561561
RUN(NAME test_bool_binop LABELS cpython llvm c)
562562
RUN(NAME test_issue_518 LABELS cpython llvm c NOFAST)
563563
RUN(NAME structs_01 LABELS cpython llvm c)
File renamed without changes.

tests/reference/asr-test_integer_bitnot-08e2e96.json renamed to tests/reference/asr-test_unary_op_03-e799eae.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"basename": "asr-test_integer_bitnot-08e2e96",
2+
"basename": "asr-test_unary_op_03-e799eae",
33
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
4-
"infile": "tests/../integration_tests/test_integer_bitnot.py",
4+
"infile": "tests/../integration_tests/test_unary_op_03.py",
55
"infile_hash": "ce63509c56eb6c68ca6d64cc2a195644f3d2fc285f3ec8865551eff5",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "asr-test_integer_bitnot-08e2e96.stdout",
8+
"stdout": "asr-test_unary_op_03-e799eae.stdout",
99
"stdout_hash": "1f4fb022cfd7bf115d1506ac0d53aa3206003060d0a14c63c75cd75f",
1010
"stderr": null,
1111
"stderr_hash": null,
File renamed without changes.

tests/reference/cpp-test_integer_bitnot-20195fd.json renamed to tests/reference/cpp-test_unary_op_03-fd9669a.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"basename": "cpp-test_integer_bitnot-20195fd",
2+
"basename": "cpp-test_unary_op_03-fd9669a",
33
"cmd": "lpython --no-color --show-cpp {infile}",
4-
"infile": "tests/../integration_tests/test_integer_bitnot.py",
4+
"infile": "tests/../integration_tests/test_unary_op_03.py",
55
"infile_hash": "ce63509c56eb6c68ca6d64cc2a195644f3d2fc285f3ec8865551eff5",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "cpp-test_integer_bitnot-20195fd.stdout",
8+
"stdout": "cpp-test_unary_op_03-fd9669a.stdout",
99
"stdout_hash": "48b5d7305b106351301408a544f22089e27a6e819f8440ce71e7078d",
1010
"stderr": null,
1111
"stderr_hash": null,
File renamed without changes.

tests/reference/llvm-test_integer_bitnot-6894b6d.json renamed to tests/reference/llvm-test_unary_op_03-046fb86.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"basename": "llvm-test_integer_bitnot-6894b6d",
2+
"basename": "llvm-test_unary_op_03-046fb86",
33
"cmd": "lpython --no-color --show-llvm {infile} -o {outfile}",
4-
"infile": "tests/../integration_tests/test_integer_bitnot.py",
4+
"infile": "tests/../integration_tests/test_unary_op_03.py",
55
"infile_hash": "ce63509c56eb6c68ca6d64cc2a195644f3d2fc285f3ec8865551eff5",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "llvm-test_integer_bitnot-6894b6d.stdout",
8+
"stdout": "llvm-test_unary_op_03-046fb86.stdout",
99
"stdout_hash": "af0bd6b1156e27caa40bf623d0d05a7ce9a3233f03a74d51d154d0b4",
1010
"stderr": null,
1111
"stderr_hash": null,

0 commit comments

Comments
 (0)