summaryrefslogtreecommitdiff
path: root/std/uuid/tests/isNil.ts
blob: 29f0feb624d36a31befdc382dd6e61f2f5ef6d48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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("");
  }
});