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
async-refinements.test.ts47 linesDownload Raw Back to tests
1// @ts-ignore TS61332import { expect, test } from "vitest";3 4import * as z from "zod/v3";5 6test("parse async test", async () => {7  const schema1 = z.string().refine(async (_val) => false);8  expect(() => schema1.parse("asdf")).toThrow();9 10  const schema2 = z.string().refine((_val) => Promise.resolve(true));11  return await expect(() => schema2.parse("asdf")).toThrow();12});13 14test("parseAsync async test", async () => {15  const schema1 = z.string().refine(async (_val) => true);16  await schema1.parseAsync("asdf");17 18  const schema2 = z.string().refine(async (_val) => false);19  return await expect(schema2.parseAsync("asdf")).rejects.toBeDefined();20  // expect(async () => await schema2.parseAsync('asdf')).toThrow();21});22 23test("parseAsync async test", async () => {24  // expect.assertions(2);25 26  const schema1 = z.string().refine((_val) => Promise.resolve(true));27  const v1 = await schema1.parseAsync("asdf");28  expect(v1).toEqual("asdf");29 30  const schema2 = z.string().refine((_val) => Promise.resolve(false));31  await expect(schema2.parseAsync("asdf")).rejects.toBeDefined();32 33  const schema3 = z.string().refine((_val) => Promise.resolve(true));34  await expect(schema3.parseAsync("asdf")).resolves.toEqual("asdf");35  return await expect(schema3.parseAsync("qwer")).resolves.toEqual("qwer");36});37 38test("parseAsync async with value", async () => {39  const schema1 = z.string().refine(async (val) => {40    return val.length > 5;41  });42  await expect(schema1.parseAsync("asdf")).rejects.toBeDefined();43 44  const v = await schema1.parseAsync("asdf123");45  return await expect(v).toEqual("asdf123");46});47 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai