From cc5429dd58b2513a010df038b8f1f37e4cc54474 Mon Sep 17 00:00:00 2001 From: Susisu Date: Sat, 27 Apr 2024 16:00:43 +0900 Subject: [PATCH] refactor(test): rename src/__tests__/utils.ts to src/testutils.ts --- src/char.test.ts | 4 ++-- src/list.test.ts | 4 ++-- src/memory.test.ts | 4 ++-- src/string.test.ts | 4 ++-- src/{__tests__/utils.ts => testutils.ts} | 0 src/utils.test.ts | 4 ++-- src/vm.test.ts | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) rename src/{__tests__/utils.ts => testutils.ts} (100%) diff --git a/src/char.test.ts b/src/char.test.ts index cd938e2..5d9343c 100644 --- a/src/char.test.ts +++ b/src/char.test.ts @@ -1,5 +1,5 @@ -import type { Equal } from "./__tests__/utils"; -import { describe, it, assert } from "./__tests__/utils"; +import type { Equal } from "./testutils"; +import { describe, it, assert } from "./testutils"; import type { Incr, Decr } from "./char"; describe("Incr", () => { diff --git a/src/list.test.ts b/src/list.test.ts index a85c762..464bba8 100644 --- a/src/list.test.ts +++ b/src/list.test.ts @@ -1,5 +1,5 @@ -import type { Equal } from "./__tests__/utils"; -import { describe, it, assert } from "./__tests__/utils"; +import type { Equal } from "./testutils"; +import { describe, it, assert } from "./testutils"; import type { Head, Tail, Cons } from "./list"; describe("Head", () => { diff --git a/src/memory.test.ts b/src/memory.test.ts index c6e42ff..d46c2c3 100644 --- a/src/memory.test.ts +++ b/src/memory.test.ts @@ -1,5 +1,5 @@ -import type { Equal } from "./__tests__/utils"; -import { describe, it, assert } from "./__tests__/utils"; +import type { Equal } from "./testutils"; +import { describe, it, assert } from "./testutils"; import type { Memory, Read, Write, MoveL, MoveR } from "./memory"; describe("Read", () => { diff --git a/src/string.test.ts b/src/string.test.ts index 0f0a3d5..87f1287 100644 --- a/src/string.test.ts +++ b/src/string.test.ts @@ -1,5 +1,5 @@ -import type { Equal } from "./__tests__/utils"; -import { describe, it, assert } from "./__tests__/utils"; +import type { Equal } from "./testutils"; +import { describe, it, assert } from "./testutils"; import type { Head, Tail, Concat } from "./string"; describe("Head", () => { diff --git a/src/__tests__/utils.ts b/src/testutils.ts similarity index 100% rename from src/__tests__/utils.ts rename to src/testutils.ts diff --git a/src/utils.test.ts b/src/utils.test.ts index 54010f4..8af5798 100644 --- a/src/utils.test.ts +++ b/src/utils.test.ts @@ -1,5 +1,5 @@ -import type { Equal } from "./__tests__/utils"; -import { describe, it, assert } from "./__tests__/utils"; +import type { Equal } from "./testutils"; +import { describe, it, assert } from "./testutils"; import type { Recurse } from "./utils"; describe("Recurse", () => { diff --git a/src/vm.test.ts b/src/vm.test.ts index 1628e10..c759f90 100644 --- a/src/vm.test.ts +++ b/src/vm.test.ts @@ -1,5 +1,5 @@ -import type { Equal } from "./__tests__/utils"; -import { describe, it, assert } from "./__tests__/utils"; +import type { Equal } from "./testutils"; +import { describe, it, assert } from "./testutils"; import type { Brainfuck } from "./vm"; import type { Recurse } from "./utils";