blob: 7d0feaf8dab4478202a7a425308fdcbc78c919ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright 2018-2021 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));
},
});
|