added SQL parser test
This commit is contained in:
parent
bc1123536e
commit
e860334377
2 changed files with 310 additions and 0 deletions
12
tests/stdlib/tsqlparser.nim
Normal file
12
tests/stdlib/tsqlparser.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
discard """
|
||||
output: '''true'''
|
||||
"""
|
||||
|
||||
# Just check that we can parse 'somesql' and render it without crashes.
|
||||
|
||||
import parsesql, streams, os
|
||||
|
||||
var tree = parseSql(newFileStream(getAppDir() / "somesql.sql"), "somesql")
|
||||
discard renderSql(tree)
|
||||
|
||||
echo "true"
|
||||
Loading…
Add table
Add a link
Reference in a new issue