Skip to content

Commit 49e9480

Browse files
authored
Merge pull request #302 from namannimmo10/strcat
Add test for runtime string concatenation
2 parents 345b873 + b36564e commit 49e9480

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

integration_tests/test_str_01.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,21 @@ def f():
1010
print(x)
1111
assert x == "abcdefghijkl123"
1212

13-
f()
13+
def test_str_concat():
14+
a: str
15+
a = "abc"
16+
b: str
17+
b = "def"
18+
c: str
19+
c = a + b
20+
assert c == "abcdef"
21+
a = ""
22+
b = "z"
23+
c = a + b
24+
assert c == "z"
25+
26+
def check():
27+
f()
28+
test_str_concat()
29+
30+
check()

0 commit comments

Comments
 (0)