Commit 202e3091 authored by antirez's avatar antirez
Browse files

Redis test: when assertion fails print not just the expression but also...

Redis test: when assertion fails print not just the expression but also expanded values in the error message.
parent efb60225
...@@ -5,7 +5,7 @@ set ::tests_failed {} ...@@ -5,7 +5,7 @@ set ::tests_failed {}
proc assert {condition} { proc assert {condition} {
if {![uplevel 1 expr $condition]} { if {![uplevel 1 expr $condition]} {
error "assertion:Expected condition '$condition' to be true" error "assertion:Expected condition '$condition' to be true ([uplevel 1 [list subst -nocommands $condition]])"
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment