Permalink
Browse files

Redis test: when assertion fails print not just the expression but al…

…so expanded values in the error message.
  • Loading branch information...
antirez committed Dec 21, 2011
1 parent 5378578 commit d4945b253bf46da317af054630b94466341a09c9
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/support/test.tcl
View
@@ -5,7 +5,7 @@ set ::tests_failed {}
proc assert {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]])"
}
}

0 comments on commit d4945b2

Please sign in to comment.