Skip to content

Commit 54d0861

Browse files
authored
Merge branch 'master' into develop
2 parents ef4c782 + 6b15a87 commit 54d0861

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/sql.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ def test_select_with_comments(self):
6969
def test_select_with_semicolon(self):
7070
self.assertEqual(self.db.execute("SELECT * FROM cs50;\n--comment"), [])
7171

72+
def test_select_with_comments(self):
73+
self.assertEqual(self.db.execute("--comment\nSELECT * FROM cs50;\n--comment"), [])
74+
75+
def test_select_with_semicolon(self):
76+
self.assertEqual(self.db.execute("SELECT * FROM cs50;\n--comment"), [])
77+
7278
def test_update_returns_affected_rows(self):
7379
rows = [
7480
{"id": 1, "val": "foo"},

0 commit comments

Comments
 (0)