kopia lustrzana https://github.com/simonw/datasette
Add test for /* multi line */ comment, refs #1860
rodzic
5f6be3c48b
commit
d2ca13b699
|
|
@ -174,6 +174,7 @@ def test_validate_sql_select_bad(bad_sql):
|
||||||
" /* comment */\nselect 1",
|
" /* comment */\nselect 1",
|
||||||
" /* comment */select 1",
|
" /* comment */select 1",
|
||||||
"/* comment */\n -- another\n /* one more */ select 1",
|
"/* comment */\n -- another\n /* one more */ select 1",
|
||||||
|
"/* This comment \n has multiple lines */\nselect 1",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_validate_sql_select_good(good_sql):
|
def test_validate_sql_select_good(good_sql):
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue