mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
14 lines
355 B
TypeScript
14 lines
355 B
TypeScript
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
import { assert } from "../testing/asserts.ts";
|
|
import { isNil, NIL_UUID } from "./mod.ts";
|
|
|
|
Deno.test({
|
|
name: "[UUID] isNil",
|
|
fn(): void {
|
|
const nil = NIL_UUID;
|
|
const u = "582cbcff-dad6-4f28-888a-e062ae36bafc";
|
|
assert(isNil(nil));
|
|
assert(!isNil(u));
|
|
},
|
|
});
|