Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1// @ts-ignore TS61332import { expect, test } from "vitest";3 4import * as z from "zod/v3";5 6test("passing validations", () => {7 const example1 = z.custom<number>((x) => typeof x === "number");8 example1.parse(1234);9 expect(() => example1.parse({})).toThrow();10});11 12test("string params", () => {13 const example1 = z.custom<number>((x) => typeof x !== "number", "customerr");14 const result = example1.safeParse(1234);15 expect(result.success).toEqual(false);16 // @ts-ignore17 expect(JSON.stringify(result.error).includes("customerr")).toEqual(true);18});19 20test("async validations", async () => {21 const example1 = z.custom<number>(async (x) => {22 return typeof x === "number";23 });24 const r1 = await example1.safeParseAsync(1234);25 expect(r1.success).toEqual(true);26 expect(r1.data).toEqual(1234);27 28 const r2 = await example1.safeParseAsync("asdf");29 expect(r2.success).toEqual(false);30 expect(r2.error!.issues.length).toEqual(1);31});32 