From f9c328549f770151b0a1a9e008e16020854aed88 Mon Sep 17 00:00:00 2001 From: Benjamin Haeberli Date: Fri, 22 Mar 2024 00:21:54 +0100 Subject: [PATCH] docs: fix float expectation --- writing-tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/writing-tests.md b/writing-tests.md index ea6d55c..48b1ead 100644 --- a/writing-tests.md +++ b/writing-tests.md @@ -71,7 +71,7 @@ describe('sum', function () { it('may sum floats', function () { $result = sum(1.5, 2.5); - expect($result)->toBe(4); + expect($result)->toBe(4.0); }); }); ```