You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
456 B
Lua
17 lines
456 B
Lua
return function(expected)
|
|
return {
|
|
messages = {
|
|
affirmative = {
|
|
standard = "{{placeholder}} must be equal to {{expected}}"
|
|
},
|
|
negative = {
|
|
standard = "{{placeholder}} cannot be equal to {{expected}}"
|
|
}
|
|
},
|
|
apply = function(context)
|
|
context.expected = expected
|
|
context.result = context.input == expected
|
|
end
|
|
}
|
|
end
|