const { cwd, test } = Deno;import { assertEquals } from "../testing/asserts.ts";import * as path from "./mod.ts";
const pwd = cwd();
test(function joinZeroLength() { assertEquals(path.posix.join(""), "."); assertEquals(path.posix.join("", ""), "."); if (path.win32) assertEquals(path.win32.join(""), "."); if (path.win32) assertEquals(path.win32.join("", ""), "."); assertEquals(path.join(pwd), pwd); assertEquals(path.join(pwd, ""), pwd);});
test(function normalizeZeroLength() { assertEquals(path.posix.normalize(""), "."); if (path.win32) assertEquals(path.win32.normalize(""), "."); assertEquals(path.normalize(pwd), pwd);});
test(function isAbsoluteZeroLength() { assertEquals(path.posix.isAbsolute(""), false); if (path.win32) assertEquals(path.win32.isAbsolute(""), false);});
test(function resolveZeroLength() { assertEquals(path.resolve(""), pwd); assertEquals(path.resolve("", ""), pwd);});
test(function relativeZeroLength() { assertEquals(path.relative("", pwd), ""); assertEquals(path.relative(pwd, ""), ""); assertEquals(path.relative(pwd, pwd), "");});