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
bigint.test.ts56 linesDownload Raw Back to tests
1// @ts-ignore TS61332import { expect, test } from "vitest";3 4import * as z from "zod/v3";5 6const gtFive = z.bigint().gt(BigInt(5));7const gteFive = z.bigint().gte(BigInt(5));8const ltFive = z.bigint().lt(BigInt(5));9const lteFive = z.bigint().lte(BigInt(5));10const positive = z.bigint().positive();11const negative = z.bigint().negative();12const nonnegative = z.bigint().nonnegative();13const nonpositive = z.bigint().nonpositive();14const multipleOfFive = z.bigint().multipleOf(BigInt(5));15 16test("passing validations", () => {17  z.bigint().parse(BigInt(1));18  z.bigint().parse(BigInt(0));19  z.bigint().parse(BigInt(-1));20  gtFive.parse(BigInt(6));21  gteFive.parse(BigInt(5));22  gteFive.parse(BigInt(6));23  ltFive.parse(BigInt(4));24  lteFive.parse(BigInt(5));25  lteFive.parse(BigInt(4));26  positive.parse(BigInt(3));27  negative.parse(BigInt(-2));28  nonnegative.parse(BigInt(0));29  nonnegative.parse(BigInt(7));30  nonpositive.parse(BigInt(0));31  nonpositive.parse(BigInt(-12));32  multipleOfFive.parse(BigInt(15));33});34 35test("failing validations", () => {36  expect(() => gtFive.parse(BigInt(5))).toThrow();37  expect(() => gteFive.parse(BigInt(4))).toThrow();38  expect(() => ltFive.parse(BigInt(5))).toThrow();39  expect(() => lteFive.parse(BigInt(6))).toThrow();40  expect(() => positive.parse(BigInt(0))).toThrow();41  expect(() => positive.parse(BigInt(-2))).toThrow();42  expect(() => negative.parse(BigInt(0))).toThrow();43  expect(() => negative.parse(BigInt(3))).toThrow();44  expect(() => nonnegative.parse(BigInt(-1))).toThrow();45  expect(() => nonpositive.parse(BigInt(1))).toThrow();46  expect(() => multipleOfFive.parse(BigInt(13))).toThrow();47});48 49test("min max getters", () => {50  expect(z.bigint().min(BigInt(5)).minValue).toEqual(BigInt(5));51  expect(z.bigint().min(BigInt(5)).min(BigInt(10)).minValue).toEqual(BigInt(10));52 53  expect(z.bigint().max(BigInt(5)).maxValue).toEqual(BigInt(5));54  expect(z.bigint().max(BigInt(5)).max(BigInt(1)).maxValue).toEqual(BigInt(1));55});56 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai