2024-01-01 21:11:32 +00:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2024-05-07 00:08:16 +00:00
|
|
|
import { AssertionError, assertThrows, unimplemented } from "./mod.ts";
|
2023-07-13 07:04:30 +00:00
|
|
|
|
2024-05-07 00:08:16 +00:00
|
|
|
Deno.test("unimplemented() throws", function () {
|
|
|
|
assertThrows(() => unimplemented(), AssertionError, "Unimplemented.");
|
|
|
|
});
|
|
|
|
|
|
|
|
Deno.test("unimplemented() throws with custom message", function () {
|
|
|
|
assertThrows(
|
|
|
|
() => unimplemented("CUSTOM MESSAGE"),
|
|
|
|
AssertionError,
|
|
|
|
"Unimplemented: CUSTOM MESSAGE",
|
|
|
|
);
|
2023-07-13 07:04:30 +00:00
|
|
|
});
|