diff --git a/tests/basics/string_join.py b/tests/basics/string_join.py
index b8694c01e05a7bf069128138886fa4e85f6fbb93..4a2e9aa9130e1aa9b0b9b43e11d61aae4a7bf57a 100644
--- a/tests/basics/string_join.py
+++ b/tests/basics/string_join.py
@@ -25,3 +25,13 @@ except TypeError:
 
 # joined by the compiler
 print("a" "b")
+print("a" '''b''')
+print("a" # inline comment
+    "b")
+print("a" \
+    "b")
+
+# the following should not be joined by the compiler
+x = 'a'
+'b'
+print(x)