14 lines
520 B
TypeScript
14 lines
520 B
TypeScript
import assert from "node:assert/strict";
|
|
import test from "node:test";
|
|
|
|
import { vargaSentenceFromMethods } from "../src/lib/rectification-varga-sentence.ts";
|
|
|
|
test("varga sentence names public methods once and ignores unknown ids", () => {
|
|
assert.equal(
|
|
vargaSentenceFromMethods(["d1-rashi", "d9-navamsa", "d1-rashi", "secret-method"]),
|
|
"本轮对照了D1 本命盘、D9 婚姻分盘。",
|
|
);
|
|
assert.equal(vargaSentenceFromMethods([]), null);
|
|
assert.equal(vargaSentenceFromMethods(undefined), null);
|
|
});
|