summary refs log tree commit diff stats
path: root/tests/stdlib/tsqlparser.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tsqlparser.nim')
-rw-r--r--tests/stdlib/tsqlparser.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/stdlib/tsqlparser.nim b/tests/stdlib/tsqlparser.nim
new file mode 100644
index 000000000..4a7b2f7d7
--- /dev/null
+++ b/tests/stdlib/tsqlparser.nim
@@ -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"