Skip to content

Commit

Permalink
Merge branch 'main' into cli-rewrite-clear-commands
Browse files Browse the repository at this point in the history
  • Loading branch information
timreichen authored Nov 27, 2024
2 parents a8a5b95 + b86d762 commit 8b0927c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions assert/equals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,26 @@ import { AssertionError } from "./assertion_error.ts";
* Type parameter can be specified to ensure values under comparison have the
* same type.
*
* Note: When comparing `Blob` objects, you should first convert them to
* `Uint8Array` using the `Blob.bytes()` method and then compare their
* contents.
*
* @example Usage
* ```ts ignore
* import { assertEquals } from "@std/assert";
*
* assertEquals("world", "world"); // Doesn't throw
* assertEquals("hello", "world"); // Throws
* ```
* @example Compare `Blob` objects
* ```ts ignore
* import { assertEquals } from "@std/assert";
*
* const bytes1 = await new Blob(["foo"]).bytes();
* const bytes2 = await new Blob(["foo"]).bytes();
*
* assertEquals(bytes1, bytes2);
* ```
*
* @typeParam T The type of the values to compare. This is usually inferred.
* @param actual The actual value to compare.
Expand Down
1 change: 1 addition & 0 deletions cli/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
".": "./mod.ts",
"./parse-args": "./parse_args.ts",
"./prompt-secret": "./prompt_secret.ts",
"./unstable-prompt-select": "./unstable_prompt_select.ts",
"./unstable-spinner": "./unstable_spinner.ts",
"./unicode-width": "./unicode_width.ts"
}
Expand Down

0 comments on commit 8b0927c

Please sign in to comment.