From e88c801e76c16d4c0a92702e248cf811038ed4ab Mon Sep 17 00:00:00 2001 From: Axetroy Date: Mon, 23 Dec 2019 17:36:25 +0800 Subject: std: remove wildcard export in uuid module (#3540) --- std/uuid/tests/generate.ts | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 std/uuid/tests/generate.ts (limited to 'std/uuid/tests/generate.ts') diff --git a/std/uuid/tests/generate.ts b/std/uuid/tests/generate.ts deleted file mode 100644 index 723740641..000000000 --- a/std/uuid/tests/generate.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import { assert, assertEquals } from "../../testing/asserts.ts"; -import { test } from "../../testing/mod.ts"; -import mod, { validate, v4 } from "../mod.ts"; -import { validate as validate4 } from "../v4.ts"; - -test({ - name: "[UUID] uuid_v4", - fn(): void { - const u = mod(); - assertEquals(typeof u, "string", "returns a string"); - assert(u !== "", "return string is not empty"); - } -}); - -test({ - name: "[UUID] uuid_v4_format", - fn(): void { - for (let i = 0; i < 10000; i++) { - const u = mod() as string; - assert(validate(u), `${u} is not a valid uuid v4`); - } - } -}); - -test({ - name: "[UUID] default_is_v4", - fn(): void { - assertEquals(mod, v4, "default is v4"); - assertEquals(validate, validate4, "validate is v4"); - } -}); -- cgit v1.2.3