feat: 完善两阶段 Agent 自进化 Pipeline、Skills 与 Benchmark (#129)
This commit is contained in:
@@ -12,12 +12,21 @@ import {
|
||||
formatPercent,
|
||||
formatRelativeDate,
|
||||
formatRelativeDays,
|
||||
formatScore,
|
||||
formatTps,
|
||||
humanizeDuration,
|
||||
humanizeTokens,
|
||||
signedDelta,
|
||||
} from "../src/lib/format";
|
||||
|
||||
describe("formatScore", () => {
|
||||
it("keeps up to the stored two decimal places", () => {
|
||||
expect(formatScore(72)).toBe("72");
|
||||
expect(formatScore(72.5)).toBe("72.5");
|
||||
expect(formatScore(72.35)).toBe("72.35");
|
||||
});
|
||||
});
|
||||
|
||||
describe("humanizeTokens", () => {
|
||||
it("below 1000 unchanged", () => {
|
||||
expect(humanizeTokens(0)).toBe("0");
|
||||
|
||||
Reference in New Issue
Block a user