about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-01-20 21:47:15 -0800
committerKartik K. Agaram <vc@akkartik.com>2023-01-20 21:48:49 -0800
commitbc95ec467b71139e4f50aa2044879d69dfd81717 (patch)
tree33dc428eb267aa08c863aa890dd7ca150035c45f
parent2a0a770c49ef41a707b0133a77d409e37559d1ad (diff)
downloadview.love-bc95ec467b71139e4f50aa2044879d69dfd81717.tar.gz
show another detail on test failure
-rw-r--r--test.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.lua b/test.lua
index 3c0f17f..cc94d94 100644
--- a/test.lua
+++ b/test.lua
@@ -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