Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING(asserts): move std/testing/asserts to std/assert #3445

Merged
merged 21 commits into from
Jul 13, 2023
Merged
  •  
  •  
  •  
Prev Previous commit
Next Next commit
std/assert
  • Loading branch information
iuioiua committed Jul 11, 2023
commit 4aac2752918794fd0ac8341b67cae4ffe83889bd
2 changes: 1 addition & 1 deletion _util/diff_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { diff, diffstr, DiffType } from "./diff.ts";
import { assertEquals } from "../asserts/mod.ts";
import { assertEquals } from "../assert/mod.ts";

Deno.test({
name: "empty",
Expand Down
2 changes: 1 addition & 1 deletion archive/tar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export { type TarInfo, type TarMeta, type TarOptions };

import { MultiReader } from "../io/multi_reader.ts";
import { Buffer } from "../io/buffer.ts";
import { assert } from "../asserts/assert.ts";
import { assert } from "../assert/assert.ts";
import { recordSize } from "./_common.ts";

const ustar = "ustar\u000000";
Expand Down
2 changes: 1 addition & 1 deletion archive/tar_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* **to run this test**
* deno run --allow-read archive/tar_test.ts
*/
import { assert, assertEquals } from "../asserts/mod.ts";
import { assert, assertEquals } from "../assert/mod.ts";
import { resolve } from "../path/mod.ts";
import { Tar } from "./tar.ts";
import { Untar } from "./untar.ts";
Expand Down
2 changes: 1 addition & 1 deletion archive/untar_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assert, assertEquals, assertExists } from "../asserts/mod.ts";
import { assert, assertEquals, assertExists } from "../assert/mod.ts";
import { resolve } from "../path/mod.ts";
import { Tar, type TarMeta } from "./tar.ts";
import { TarEntry, type TarHeader, Untar } from "./untar.ts";
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion asserts/_format_test.ts → assert/_format_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { green, red, stripColor } from "../fmt/colors.ts";
import { assertEquals, assertThrows } from "../asserts/mod.ts";
import { assertEquals, assertThrows } from "../assert/mod.ts";
import { format } from "./_format.ts";

Deno.test("assert diff formatting (strings)", () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { AssertionError } from "./assertion_error.ts";
*
* @example
* ```ts
* import { assertAlmostEquals, assertThrows } from "https://deno.land/std@$STD_VERSION/asserts/mod.ts";
* import { assertAlmostEquals, assertThrows } from "https://deno.land/std@$STD_VERSION/assert/mod.ts";
*
* assertAlmostEquals(0.1, 0.2);
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { AssertionError } from "./assertion_error.ts";
*
* @example
* ```ts
* import { assertArrayIncludes } from "https://deno.land/std@$STD_VERSION/asserts/assert_array_includes.ts";
* import { assertArrayIncludes } from "https://deno.land/std@$STD_VERSION/assert/assert_array_includes.ts";
*
* assertArrayIncludes<number>([1, 2], [2])
* ```
Expand Down
2 changes: 1 addition & 1 deletion asserts/assert_equals.ts → assert/assert_equals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { CAN_NOT_DISPLAY } from "./_constants.ts";
*
* @example
* ```ts
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/asserts/assert_equals.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
*
* Deno.test("example", function (): void {
* assertEquals("world", "world");
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { AssertionError } from "./assertion_error.ts";
*
* @example
* ```ts
* import { assertNotEquals } from "https://deno.land/std@$STD_VERSION/asserts/assert_not_equals.ts";
* import { assertNotEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_not_equals.ts";
*
* assertNotEquals<number>(1, 2)
* ```
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { format } from "./_format.ts";
* If the values are strictly equal then throw.
*
* ```ts
* import { assertNotStrictEquals } from "https://deno.land/std@$STD_VERSION/asserts/assert_not_strict_equals.ts";
* import { assertNotStrictEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_not_strict_equals.ts";
*
* assertNotStrictEquals(1, 1)
* ```
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions asserts/assert_rejects.ts → assert/assert_rejects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { assertIsError } from "./assert_is_error.ts";
*
* @example
* ```ts
* import { assertRejects } from "https://deno.land/std@$STD_VERSION/asserts/assert_rejects.ts";
* import { assertRejects } from "https://deno.land/std@$STD_VERSION/assert/assert_rejects.ts";
*
* Deno.test("doesThrow", async function () {
* await assertRejects(
Expand Down Expand Up @@ -43,7 +43,7 @@ export function assertRejects(
*
* @example
* ```ts
* import { assertRejects } from "https://deno.land/std@$STD_VERSION/asserts/assert_rejects.ts";
* import { assertRejects } from "https://deno.land/std@$STD_VERSION/assert/assert_rejects.ts";
*
* Deno.test("doesThrow", async function () {
* await assertRejects(async () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { red } from "../fmt/colors.ts";
*
* @example
* ```ts
* import { assertStrictEquals } from "https://deno.land/std@$STD_VERSION/asserts/assert_strict_equals.ts";
* import { assertStrictEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_strict_equals.ts";
*
* Deno.test("isStrictlyEqual", function (): void {
* const a = {};
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions asserts/assert_throws.ts → assert/assert_throws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { AssertionError } from "./assertion_error.ts";
*
* @example
* ```ts
* import { assertThrows } from "https://deno.land/std@$STD_VERSION/asserts/assert_throws.ts";
* import { assertThrows } from "https://deno.land/std@$STD_VERSION/assert/assert_throws.ts";
*
* Deno.test("doesThrow", function (): void {
* assertThrows((): void => {
Expand All @@ -35,7 +35,7 @@ export function assertThrows(
*
* @example
* ```ts
* import { assertThrows } from "https://deno.land/std@$STD_VERSION/asserts/assert_throws.ts";
* import { assertThrows } from "https://deno.land/std@$STD_VERSION/assert/assert_throws.ts";
*
* Deno.test("doesThrow", function (): void {
* assertThrows((): void => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion async/abortable_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assertEquals, assertRejects } from "../asserts/mod.ts";
import { assertEquals, assertRejects } from "../assert/mod.ts";
import { deferred } from "./deferred.ts";
import { abortable } from "./abortable.ts";

Expand Down
2 changes: 1 addition & 1 deletion async/deadline_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assertEquals, assertRejects } from "../asserts/mod.ts";
import { assertEquals, assertRejects } from "../assert/mod.ts";
import { delay } from "./delay.ts";
import { deadline, DeadlineError } from "./deadline.ts";

Expand Down
2 changes: 1 addition & 1 deletion async/debounce_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assertEquals, assertStrictEquals } from "../asserts/mod.ts";
import { assertEquals, assertStrictEquals } from "../assert/mod.ts";
import { debounce, DebouncedFunction } from "./debounce.ts";
import { delay } from "./delay.ts";

Expand Down
2 changes: 1 addition & 1 deletion async/deferred_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assertEquals, assertRejects, assertThrows } from "../asserts/mod.ts";
import { assertEquals, assertRejects, assertThrows } from "../assert/mod.ts";
import { deferred } from "./deferred.ts";

Deno.test("[async] deferred: resolve", async function () {
Expand Down
2 changes: 1 addition & 1 deletion async/delay_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { delay } from "./delay.ts";
import { assert, assertRejects } from "../asserts/mod.ts";
import { assert, assertRejects } from "../assert/mod.ts";

Deno.test("[async] delay", async function () {
const start = new Date();
Expand Down
2 changes: 1 addition & 1 deletion async/mux_async_iterator_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assertEquals, assertRejects } from "../asserts/mod.ts";
import { assertEquals, assertRejects } from "../assert/mod.ts";
import { MuxAsyncIterator } from "./mux_async_iterator.ts";

async function* gen123(): AsyncIterableIterator<number> {
Expand Down
2 changes: 1 addition & 1 deletion async/pool_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
assertEquals,
assertRejects,
assertStringIncludes,
} from "../asserts/mod.ts";
} from "../assert/mod.ts";

Deno.test("[async] pooledMap", async function () {
const start = new Date();
Expand Down
2 changes: 1 addition & 1 deletion async/retry.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.

import { assert } from "../asserts/assert.ts";
import { assert } from "../assert/assert.ts";

export class RetryError extends Error {
constructor(cause: unknown, attempts: number) {
Expand Down
2 changes: 1 addition & 1 deletion async/retry_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { _exponentialBackoffWithJitter, retry, RetryError } from "./retry.ts";
import { assertEquals, assertRejects } from "../asserts/mod.ts";
import { assertEquals, assertRejects } from "../assert/mod.ts";
import { FakeTime } from "../testing/time.ts";

function generateErroringFunction(errorsBeforeSucceeds: number) {
Expand Down
2 changes: 1 addition & 1 deletion async/tee_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { tee } from "./tee.ts";
import { assertEquals } from "../asserts/mod.ts";
import { assertEquals } from "../assert/mod.ts";

/** An example async generator */
const gen = async function* iter() {
Expand Down
2 changes: 1 addition & 1 deletion bytes/bytes_list_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assertEquals, assertThrows } from "../asserts/mod.ts";
import { assertEquals, assertThrows } from "../assert/mod.ts";
import { BytesList } from "./bytes_list.ts";
import * as bytes from "./mod.ts";
function setup() {
Expand Down
2 changes: 1 addition & 1 deletion bytes/concat_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assert, assertEquals } from "../asserts/mod.ts";
import { assert, assertEquals } from "../assert/mod.ts";
import { concat } from "./concat.ts";

Deno.test("[bytes] concat", () => {
Expand Down
2 changes: 1 addition & 1 deletion bytes/copy_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assert, assertEquals } from "../asserts/mod.ts";
import { assert, assertEquals } from "../assert/mod.ts";
import { copy } from "./copy.ts";

Deno.test("[bytes] copy", function () {
Expand Down
2 changes: 1 addition & 1 deletion bytes/ends_with_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.

import { assert } from "../asserts/mod.ts";
import { assert } from "../assert/mod.ts";
import { endsWith } from "./ends_with.ts";

Deno.test("[bytes] endsWith", () => {
Expand Down
2 changes: 1 addition & 1 deletion bytes/equals_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { equals } from "./equals.ts";
import { assert } from "../asserts/mod.ts";
import { assert } from "../assert/mod.ts";

Deno.test("[bytes] equals", () => {
const v = equals(new Uint8Array([0, 1, 2, 3]), new Uint8Array([0, 1, 2, 3]));
Expand Down
2 changes: 1 addition & 1 deletion bytes/includes_needle_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { includesNeedle } from "./includes_needle.ts";
import { assert } from "../asserts/mod.ts";
import { assert } from "../assert/mod.ts";

Deno.test("[bytes] includesNeedle", () => {
const encoder = new TextEncoder();
Expand Down
2 changes: 1 addition & 1 deletion bytes/index_of_needle_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { indexOfNeedle } from "./index_of_needle.ts";
import { assertEquals } from "../asserts/mod.ts";
import { assertEquals } from "../assert/mod.ts";

Deno.test("[bytes] indexOfNeedle1", () => {
const i = indexOfNeedle(
Expand Down
2 changes: 1 addition & 1 deletion bytes/last_index_of_needle_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "../asserts/mod.ts";
import { assertEquals } from "../assert/mod.ts";
import { lastIndexOfNeedle } from "./last_index_of_needle.ts";

Deno.test("[bytes] lastIndexOfNeedle1", () => {
Expand Down
2 changes: 1 addition & 1 deletion bytes/repeat_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assertEquals, assertThrows } from "../asserts/mod.ts";
import { assertEquals, assertThrows } from "../assert/mod.ts";
import { repeat } from "./repeat.ts";

Deno.test("[bytes] repeat", () => {
Expand Down
2 changes: 1 addition & 1 deletion bytes/starts_with_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assert } from "../asserts/mod.ts";
import { assert } from "../assert/mod.ts";
import { startsWith } from "./starts_with.ts";

Deno.test("[bytes] startsWith", () => {
Expand Down
2 changes: 1 addition & 1 deletion collections/_comparators_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "../asserts/mod.ts";
import { assertEquals } from "../assert/mod.ts";
import { ascend, descend } from "./_comparators.ts";

Deno.test("[collections/comparators] ascend", () => {
Expand Down
2 changes: 1 addition & 1 deletion collections/aggregate_groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { mapEntries } from "./map_entries.ts";
* @example
* ```ts
* import { aggregateGroups } from "https://deno.land/std@$STD_VERSION/collections/aggregate_groups.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/asserts/assert_equals.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
*
* const foodProperties = {
* "Curry": ["spicy", "vegan"],
Expand Down
2 changes: 1 addition & 1 deletion collections/aggregate_groups_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.

import { assertEquals } from "../asserts/mod.ts";
import { assertEquals } from "../assert/mod.ts";
import { aggregateGroups } from "./aggregate_groups.ts";

function aggregateGroupsTest<T, A>(
Expand Down
2 changes: 1 addition & 1 deletion collections/associate_by.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @example
* ```ts
* import { associateBy } from "https://deno.land/std@$STD_VERSION/collections/associate_by.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/asserts/assert_equals.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
*
* const users = [
* { id: "a2e", userName: "Anna" },
Expand Down
2 changes: 1 addition & 1 deletion collections/associate_by_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.

import { assertEquals } from "../asserts/mod.ts";
import { assertEquals } from "../assert/mod.ts";
import { associateBy } from "./associate_by.ts";

function associateByTest<T>(
Expand Down
2 changes: 1 addition & 1 deletion collections/associate_with.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @example
* ```ts
* import { associateWith } from "https://deno.land/std@$STD_VERSION/collections/associate_with.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/asserts/assert_equals.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
*
* const names = ["Kim", "Lara", "Jonathan"];
* const namesToLength = associateWith(names, (it) => it.length);
Expand Down
2 changes: 1 addition & 1 deletion collections/associate_with_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.

import { assertEquals } from "../asserts/mod.ts";
import { assertEquals } from "../assert/mod.ts";
import { associateWith } from "./associate_with.ts";

function associateWithTest<T>(
Expand Down
2 changes: 1 addition & 1 deletion collections/binary_heap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function getParentIndex(index: number) {
* BinaryHeap,
* descend,
* } from "https://deno.land/std@$STD_VERSION/collections/binary_heap.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/asserts/assert_equals.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
*
* const maxHeap = new BinaryHeap<number>();
* maxHeap.push(4, 1, 3, 5, 2);
Expand Down
4 changes: 2 additions & 2 deletions collections/binary_heap_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "../asserts/mod.ts";
import { assert } from "../asserts/assert.ts";
import { assertEquals } from "../assert/mod.ts";
import { assert } from "../assert/assert.ts";
import { ascend, BinaryHeap, descend } from "./binary_heap.ts";
import { Container, MyMath } from "./_test_utils.ts";

Expand Down
2 changes: 1 addition & 1 deletion collections/binary_search_node_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { assertEquals, assertStrictEquals } from "../asserts/mod.ts";
import { assertEquals, assertStrictEquals } from "../assert/mod.ts";
import { BinarySearchNode } from "./binary_search_node.ts";

let parent: BinarySearchNode<number>;
Expand Down
2 changes: 1 addition & 1 deletion collections/binary_search_tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export * from "./_comparators.ts";
* BinarySearchTree,
* descend,
* } from "https://deno.land/std@$STD_VERSION/collections/binary_search_tree.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/asserts/assert_equals.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
*
* const values = [3, 10, 13, 4, 6, 7, 1, 14];
* const tree = new BinarySearchTree<number>();
Expand Down
2 changes: 1 addition & 1 deletion collections/binary_search_tree_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
assertEquals,
assertStrictEquals,
assertThrows,
} from "../asserts/mod.ts";
} from "../assert/mod.ts";
import { ascend, BinarySearchTree, descend } from "./binary_search_tree.ts";

class MyMath {
Expand Down
2 changes: 1 addition & 1 deletion collections/chunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @example
* ```ts
* import { chunk } from "https://deno.land/std@$STD_VERSION/collections/chunk.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/asserts/assert_equals.ts";
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
*
* const words = [
* "lorem",
Expand Down
2 changes: 1 addition & 1 deletion collections/chunk_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.

import { assertEquals, assertThrows } from "../asserts/mod.ts";
import { assertEquals, assertThrows } from "../assert/mod.ts";
import { chunk } from "./chunk.ts";

function chunkTest<I>(
Expand Down
Loading