mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 14:50:04 +08:00
49 lines
2.9 KiB
Lua
Vendored
49 lines
2.9 KiB
Lua
Vendored
local s = require('say')
|
|
|
|
s:set_namespace('en')
|
|
|
|
s:set("assertion.same.positive", "Expected objects to be the same.\nPassed in:\n%s\nExpected:\n%s")
|
|
s:set("assertion.same.negative", "Expected objects to not be the same.\nPassed in:\n%s\nDid not expect:\n%s")
|
|
|
|
s:set("assertion.equals.positive", "Expected objects to be equal.\nPassed in:\n%s\nExpected:\n%s")
|
|
s:set("assertion.equals.negative", "Expected objects to not be equal.\nPassed in:\n%s\nDid not expect:\n%s")
|
|
|
|
s:set("assertion.near.positive", "Expected values to be near.\nPassed in:\n%s\nExpected:\n%s +/- %s")
|
|
s:set("assertion.near.negative", "Expected values to not be near.\nPassed in:\n%s\nDid not expect:\n%s +/- %s")
|
|
|
|
s:set("assertion.matches.positive", "Expected strings to match.\nPassed in:\n%s\nExpected:\n%s")
|
|
s:set("assertion.matches.negative", "Expected strings not to match.\nPassed in:\n%s\nDid not expect:\n%s")
|
|
|
|
s:set("assertion.unique.positive", "Expected object to be unique:\n%s")
|
|
s:set("assertion.unique.negative", "Expected object to not be unique:\n%s")
|
|
|
|
s:set("assertion.error.positive", "Expected a different error.\nCaught:\n%s\nExpected:\n%s")
|
|
s:set("assertion.error.negative", "Expected no error, but caught:\n%s")
|
|
|
|
s:set("assertion.truthy.positive", "Expected to be truthy, but value was:\n%s")
|
|
s:set("assertion.truthy.negative", "Expected to not be truthy, but value was:\n%s")
|
|
|
|
s:set("assertion.falsy.positive", "Expected to be falsy, but value was:\n%s")
|
|
s:set("assertion.falsy.negative", "Expected to not be falsy, but value was:\n%s")
|
|
|
|
s:set("assertion.called.positive", "Expected to be called %s time(s), but was called %s time(s)")
|
|
s:set("assertion.called.negative", "Expected not to be called exactly %s time(s), but it was.")
|
|
|
|
s:set("assertion.called_at_least.positive", "Expected to be called at least %s time(s), but was called %s time(s)")
|
|
s:set("assertion.called_at_most.positive", "Expected to be called at most %s time(s), but was called %s time(s)")
|
|
s:set("assertion.called_more_than.positive", "Expected to be called more than %s time(s), but was called %s time(s)")
|
|
s:set("assertion.called_less_than.positive", "Expected to be called less than %s time(s), but was called %s time(s)")
|
|
|
|
s:set("assertion.called_with.positive", "Function was not called with the arguments")
|
|
s:set("assertion.called_with.negative", "Function was called with the arguments")
|
|
|
|
s:set("assertion.returned_with.positive", "Function was not returned with the arguments")
|
|
s:set("assertion.returned_with.negative", "Function was returned with the arguments")
|
|
|
|
s:set("assertion.returned_arguments.positive", "Expected to be called with %s argument(s), but was called with %s")
|
|
s:set("assertion.returned_arguments.negative", "Expected not to be called with %s argument(s), but was called with %s")
|
|
|
|
-- errors
|
|
s:set("assertion.internal.argtolittle", "the '%s' function requires a minimum of %s arguments, got: %s")
|
|
s:set("assertion.internal.badargtype", "bad argument #%s to '%s' (%s expected, got %s)")
|