From d6189e60851ff347c8c11812025232621f54096e Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 30 Jun 2024 23:50:21 +0200 Subject: Split "DSL" definition from the "all-in-parser-and-output" --- spec/parser_spec.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 spec/parser_spec.lua (limited to 'spec') 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) -- cgit v1.1