diff --git a/integration_tests/test_str_01.py b/integration_tests/test_str_01.py index ac0c08dbd4..6655015921 100644 --- a/integration_tests/test_str_01.py +++ b/integration_tests/test_str_01.py @@ -10,4 +10,21 @@ def f(): print(x) assert x == "abcdefghijkl123" -f() +def test_str_concat(): + a: str + a = "abc" + b: str + b = "def" + c: str + c = a + b + assert c == "abcdef" + a = "" + b = "z" + c = a + b + assert c == "z" + +def check(): + f() + test_str_concat() + +check()