Lua Version type: shorten "version too old" message
This commit is contained in:
parent
e871d65b67
commit
3c3e9a12cd
2 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ __tostring v = return (showVersion v)
|
|||
-- | Default error message when a version is too old. This message is
|
||||
-- formatted in Lua with the expected and actual versions as arguments.
|
||||
versionTooOldMessage :: String
|
||||
versionTooOldMessage = "version too old: expected version %s or newer, got %s"
|
||||
versionTooOldMessage = "expected version %s or newer, got %s"
|
||||
|
||||
-- | Throw an error if this version is older than the given version.
|
||||
-- FIXME: This function currently requires the string library to be
|
||||
|
|
|
@ -94,7 +94,7 @@ return {
|
|||
local expected = Version {2, 9}
|
||||
assert.error_matches(
|
||||
function () actual:must_be_at_least(expected) end,
|
||||
'version too old: expected version 2.9 or newer, got 2.8'
|
||||
'expected version 2.9 or newer, got 2.8'
|
||||
)
|
||||
end),
|
||||
test('does nothing if expected version is older than actual', function ()
|
||||
|
|
Loading…
Add table
Reference in a new issue