mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-12 16:24:16 +02:00
Fixed assert_equal documentation example
The example is using approx instead of equal.
This commit is contained in:
committed by
GitHub
parent
8ef4a7f3ea
commit
e2e5808607
@@ -952,7 +952,7 @@ module assert_approx(got, expected, info) {
|
|||||||
// expected = The value that was expected.
|
// expected = The value that was expected.
|
||||||
// info = Extra info to print out to make the error clearer.
|
// info = Extra info to print out to make the error clearer.
|
||||||
// Example:
|
// 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) {
|
module assert_equal(got, expected, info) {
|
||||||
no_children($children);
|
no_children($children);
|
||||||
if (got != expected || (is_nan(got) && is_nan(expected))) {
|
if (got != expected || (is_nan(got) && is_nan(expected))) {
|
||||||
|
Reference in New Issue
Block a user