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
instanceof.test.ts38 linesDownload Raw Back to tests
1// @ts-ignore TS61332import { expect, test } from "vitest";3 4import * as z from "zod/v3";5import { util } from "../helpers/util.js";6 7test("instanceof", async () => {8  class Test {}9  class Subtest extends Test {}10  abstract class AbstractBar {11    constructor(public val: string) {}12  }13  class Bar extends AbstractBar {}14 15  const TestSchema = z.instanceof(Test);16  const SubtestSchema = z.instanceof(Subtest);17  const AbstractSchema = z.instanceof(AbstractBar);18  const BarSchema = z.instanceof(Bar);19 20  TestSchema.parse(new Test());21  TestSchema.parse(new Subtest());22  SubtestSchema.parse(new Subtest());23  AbstractSchema.parse(new Bar("asdf"));24  const bar = BarSchema.parse(new Bar("asdf"));25  expect(bar.val).toEqual("asdf");26 27  await expect(() => SubtestSchema.parse(new Test())).toThrow(/Input not instance of Subtest/);28  await expect(() => TestSchema.parse(12)).toThrow(/Input not instance of Test/);29 30  util.assertEqual<Test, z.infer<typeof TestSchema>>(true);31});32 33test("instanceof fatal", () => {34  const schema = z.instanceof(Date).refine((d) => d.toString());35  const res = schema.safeParse(null);36  expect(res.success).toBe(false);37});38 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai