summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-06-30 23:50:21 +0200
committerAki <please@ignore.pl>2024-06-30 23:50:21 +0200
commitd6189e60851ff347c8c11812025232621f54096e (patch)
tree0c1694b98a80ef4dd4c0f04ee11ae62c4562d818 /spec
parente2690e1cce87be317dd8169e93a59318b42e3b82 (diff)
downloadheaders-d6189e60851ff347c8c11812025232621f54096e.zip
headers-d6189e60851ff347c8c11812025232621f54096e.tar.gz
headers-d6189e60851ff347c8c11812025232621f54096e.tar.bz2
Split "DSL" definition from the "all-in-parser-and-output"
Diffstat (limited to 'spec')
-rw-r--r--spec/parser_spec.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/parser_spec.lua b/spec/parser_spec.lua
new file mode 100644
index 0000000..78ee8b8
--- /dev/null
+++ b/spec/parser_spec.lua
@@ -0,0 +1,16 @@
+local parse = require "headers.parser"
+
+
+describe("Scheme", function()
+ it("version one is supported", function()
+ assert.has_no.errors(function()
+ parse [[scheme "headers/1"]]
+ end)
+ end)
+
+ it("is not required", function()
+ assert.has_no.errors(function()
+ parse ""
+ end)
+ end)
+end)