mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 08:39:09 -05:00
6a0858bd5d
Original: f52b3ec002
16 lines
433 B
TypeScript
16 lines
433 B
TypeScript
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
|
import { assert } from "../../testing/asserts.ts";
|
|
import { test } from "../../testing/mod.ts";
|
|
// @ts-ignore
|
|
import { NIL_UUID, isNil } from "../mod.ts";
|
|
|
|
test({
|
|
name: "[UUID] isNil",
|
|
fn(): void {
|
|
const nil = NIL_UUID;
|
|
const u = "582cbcff-dad6-4f28-888a-e062ae36bafc";
|
|
assert(isNil(nil));
|
|
assert(!isNil(u));
|
|
console.log("");
|
|
}
|
|
});
|