Skip to content

Commit

Permalink
test(utilities): Add test for semver parsing and deprecator
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Aug 17, 2023
1 parent 186f9f3 commit 530bf64
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/utilities_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ describe("SILE.utilities", function()
assert.is.truthy(SU)
end)

describe("deprecated", function ()
it("should compute errors based on semver", function()
SILE.version = "0.1.10"
SU.error = error
assert.has.errors(function() SU.deprecated("foo", "bar", "0.1.9", "0.1.9") end)
assert.has_no.errors(function() SU.deprecated("foo", "bar", "0.1.11", "0.1.11") end)
end)
end)

describe("utf8_to_utf16be_hexencoded ", function()
it("should hex encode input", function()
local str = "foo"
Expand Down

0 comments on commit 530bf64

Please sign in to comment.