Team Ai
Datasetpublic

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.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
nullable.test.ts43 linesDownload Raw Back to tests
1// @ts-ignore TS61332import { expect, test } from "vitest";3 4import * as z from "zod/v3";5 6function checkErrors(a: z.ZodTypeAny, bad: any) {7  let expected: any;8  try {9    a.parse(bad);10  } catch (error) {11    expected = (error as z.ZodError).formErrors;12  }13  try {14    a.nullable().parse(bad);15  } catch (error) {16    expect((error as z.ZodError).formErrors).toEqual(expected);17  }18}19 20test("Should have error messages appropriate for the underlying type", () => {21  checkErrors(z.string().min(2), 1);22  z.string().min(2).nullable().parse(null);23  checkErrors(z.number().gte(2), 1);24  z.number().gte(2).nullable().parse(null);25  checkErrors(z.boolean(), "");26  z.boolean().nullable().parse(null);27  checkErrors(z.null(), null);28  z.null().nullable().parse(null);29  checkErrors(z.null(), {});30  z.null().nullable().parse(null);31  checkErrors(z.object({}), 1);32  z.object({}).nullable().parse(null);33  checkErrors(z.tuple([]), 1);34  z.tuple([]).nullable().parse(null);35  checkErrors(z.unknown(), 1);36  z.unknown().nullable().parse(null);37});38 39test("unwrap", () => {40  const unwrapped = z.string().nullable().unwrap();41  expect(unwrapped).toBeInstanceOf(z.ZodString);42});43 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai