Skip to content

Commit d5b5844

Browse files
add braces around tolerance
1 parent 4972a8b commit d5b5844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/resp_assertions/floating_point_bulk_string_assertion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (a FloatingPointBulkStringAssertion) Run(value resp_value.Value) error {
3636
if diff > a.Tolerance {
3737
// display full precision
3838
expectedValueStr := strconv.FormatFloat(a.ExpectedValue, 'f', -1, 64)
39-
expectedStr := fmt.Sprintf("%s ± %g", expectedValueStr, a.Tolerance)
39+
expectedStr := fmt.Sprintf("%s (± %g)", expectedValueStr, a.Tolerance)
4040
return fmt.Errorf("Expected %s, got %s", expectedStr, stringValue)
4141
}
4242

0 commit comments

Comments
 (0)