mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 09:20:24 +00:00
test: tighten small shared helper coverage
This commit is contained in:
@@ -6,6 +6,7 @@ describe("shared/model-param-b", () => {
|
||||
expect(inferParamBFromIdOrName("llama-8b mixtral-22b")).toBe(22);
|
||||
expect(inferParamBFromIdOrName("Qwen 0.5B Instruct")).toBe(0.5);
|
||||
expect(inferParamBFromIdOrName("prefix M7B and q4_32b")).toBe(32);
|
||||
expect(inferParamBFromIdOrName("(70b) + m1.5b + qwen-14b")).toBe(70);
|
||||
});
|
||||
|
||||
it("ignores malformed, zero, and non-delimited matches", () => {
|
||||
@@ -13,5 +14,6 @@ describe("shared/model-param-b", () => {
|
||||
expect(inferParamBFromIdOrName("model 0b")).toBeNull();
|
||||
expect(inferParamBFromIdOrName("model b5")).toBeNull();
|
||||
expect(inferParamBFromIdOrName("foo70bbar")).toBeNull();
|
||||
expect(inferParamBFromIdOrName("ab7b model")).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user