Skip to content

Commit

Permalink
Redis test: when assertion fails print not just the expression but al…
Browse files Browse the repository at this point in the history
…so expanded values in the error message.
  • Loading branch information
antirez committed Jan 7, 2012
1 parent 5378578 commit d4945b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/support/test.tcl
Expand Up @@ -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]])"
}
}

Expand Down

0 comments on commit d4945b2

Please sign in to comment.