From e2e58086076e210e53075e251328a193653b9bca Mon Sep 17 00:00:00 2001 From: Christopher Hotchkiss Date: Mon, 23 Jun 2025 11:49:31 -0700 Subject: [PATCH] Fixed assert_equal documentation example The example is using approx instead of equal. --- utility.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility.scad b/utility.scad index 70f12384..b84bd1c7 100644 --- a/utility.scad +++ b/utility.scad @@ -952,7 +952,7 @@ module assert_approx(got, expected, info) { // expected = The value that was expected. // info = Extra info to print out to make the error clearer. // Example: -// assert_approx(3*9, 27, str("a=",3,", b=",9)); +// assert_equal(3*9, 27, str("a=",3,", b=",9)); module assert_equal(got, expected, info) { no_children($children); if (got != expected || (is_nan(got) && is_nan(expected))) {