Skip to content

Commit 37e48e1

Browse files
Merge pull request #208 from codecrafters-io/update-tolerance-logs
add braces around tolerance
2 parents 4972a8b + d5b5844 commit 37e48e1

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)