show another detail on test failure

This commit is contained in:
Kartik K. Agaram 2023-01-20 21:47:15 -08:00
parent 2a0a770c49
commit bc95ec467b
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ end
function check_eq(x, expected, msg)
if not eq(x, expected) then
error(msg..'; got "'..x..'"')
error(msg..'; should be "'..expected..'" but got "'..x..'"')
end
end