Skip to content

Commit 07d6690

Browse files
committed
Tests: Add testcase and update references
1 parent dfd7baa commit 07d6690

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

integration_tests/test_intrinsic_function_mixed_print.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ def test_intrinsic_function_mixed_print():
77
print("1 is located at:", my_list.index(1))
88
my_list.append(2)
99
print("2 is present", my_list.count(2), "times")
10+
print(my_list.pop(), my_list)
1011

1112
# dict and dict methods
1213
my_dict: dict[str, i32] = {"first": 1, "second": 2, "third": 3}

tests/reference/runtime-test_intrinsic_function_mixed_print-a862825.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"basename": "runtime-test_intrinsic_function_mixed_print-a862825",
33
"cmd": "lpython {infile}",
44
"infile": "tests/../integration_tests/test_intrinsic_function_mixed_print.py",
5-
"infile_hash": "15d9508261f2a05b2146780770d5d3cf25e6304568a497b4d7ab2e05",
5+
"infile_hash": "eb30139022c49be86015547192341d98c3b05e74da74e17dc621bef3",
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "runtime-test_intrinsic_function_mixed_print-a862825.stdout",
9-
"stdout_hash": "47e103dce40a4e7ab41c684afd71ae9565407a5631585fd58d6d18a4",
9+
"stdout_hash": "523cab9cb106dd6e41fbabc12f303d93a8c042fc0c733db3d9204739",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
5
22
0
33
2 is present 2 times
4+
2
45
['second', 'third', 'first']
56
Value of 'third': 3

0 commit comments

Comments
 (0)