Skip to content

Commit

Permalink
Removed a left print.
Browse files Browse the repository at this point in the history
  • Loading branch information
flosch committed Sep 10, 2012
1 parent c924d5d commit 2af61af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,6 @@ func (e *expr) evalValue(ctx *Context) (interface{}, error) {
case bool:
return !val, nil
default:
fmt.Printf("%v (type %T)\n", value, value)
// If negation of a string, int or something, check whether they equal
// their default value. Default behaviour is: empty type evaluates to false (since
// this is a negation it must evaluating to true)
Expand Down
1 change: 1 addition & 0 deletions template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ var tags_tests = []test{
{"{% if !true || !true || !true || true && true %}Yes{% else %}No{%endif%}", "Yes", nil, ""},
{"{% if false || false || true || false %}Yes{% else %}No{%endif%}", "Yes", nil, ""},
{"{% if false || true %}Yes{% else %}No{%endif%}", "Yes", nil, ""},
{"{% if novalue %}Yes{% else %}No{%endif%}", "No", nil, ""},
{"{% if !novalue %}Yes{% else %}No{%endif%}", "Yes", nil, ""},
{"{% if person %}Yes{% else %}No{% endif %}", "xxxx", Context{"person": &person}, "Pongo panicked with this error"}, // This one lets pongo panicking in tags.go
{"{% if person %}Yes{% else %}No{% endif %}", "xxxx", Context{"person": &person}, "FUTURE"}, // Should be fixed in the future
Expand Down

0 comments on commit 2af61af

Please sign in to comment.