From 939440cbaef82046fec1a6c15020bf53fffbacf5 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 4 Jul 2024 15:30:13 +0900 Subject: [PATCH] docs(assert): improve assertNotStrictEquals example --- assert/not_strict_equals.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/assert/not_strict_equals.ts b/assert/not_strict_equals.ts index be2370d46ada..d928be4d7194 100644 --- a/assert/not_strict_equals.ts +++ b/assert/not_strict_equals.ts @@ -12,8 +12,11 @@ import { format } from "@std/internal/format"; * ```ts no-eval * import { assertNotStrictEquals } from "@std/assert"; * - * assertNotStrictEquals(1, 1); // Doesn't throw - * assertNotStrictEquals(1, 2); // Throws + * assertNotStrictEquals(1, 1); // Throws + * assertNotStrictEquals(1, 2); // Doesn't throw + * + * assertNotStrictEquals(0, 0); // Throws + * assertNotStrictEquals(0, -0); // Doesn't throw * ``` * * @typeParam T The type of the values to compare.