import "@js-temporal/polyfill";
import "urlpattern-polyfill";
globalThis.addEventListener = () => {};
import { A as LanguageString } from "../vocab-C5EUmVTj.mjs";
import { t as test } from "../testing-BQeTO4ss.mjs";
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
import "../std__assert-2v7gYiZp.mjs";
import { parseLanguageTag } from "@phensley/language-tag";
import util from "node:util";
//#region src/runtime/langstr.test.ts
test("new LanguageString()", () => {
	const langStr = new LanguageString("Hello", "en");
	assertEquals(langStr.toString(), "Hello");
	assertEquals(langStr.language, parseLanguageTag("en"));
	assertEquals(new LanguageString("Hello", parseLanguageTag("en")), langStr);
});
test({
	name: "Deno.inspect(LanguageString)",
	ignore: !("Deno" in globalThis),
	fn() {
		const langStr = new LanguageString("Hello, 'world'", "en");
		assertEquals(Deno.inspect(langStr, { colors: false }), "<en> \"Hello, 'world'\"");
	}
});
test("util.inspect(LanguageString)", () => {
	const langStr = new LanguageString("Hello, 'world'", "en");
	assertEquals(util.inspect(langStr, { colors: false }), "<en> \"Hello, 'world'\"");
});
//#endregion
export {};
