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)
downloadtext.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
 
/a> 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204