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 { test } from "vitest";3 4import * as z from "zod/v3";5 6test("test", () => {7 z;8});9 10// const fish = z.object({11// name: z.string(),12// props: z.object({13// color: z.string(),14// numScales: z.number(),15// }),16// });17 18// const nonStrict = z19// .object({20// name: z.string(),21// color: z.string(),22// })23// .nonstrict();24 25// test('object pick type', () => {26// const modNonStrictFish = nonStrict.omit({ name: true });27// modNonStrictFish.parse({ color: 'asdf' });28 29// const bad1 = () => fish.pick({ props: { unknown: true } } as any);30// const bad2 = () => fish.omit({ name: true, props: { unknown: true } } as any);31 32// expect(bad1).toThrow();33// expect(bad2).toThrow();34// });35 36// test('f1', () => {37// const f1 = fish.pick(true);38// f1.parse({ name: 'a', props: { color: 'b', numScales: 3 } });39// });40// test('f2', () => {41// const f2 = fish.pick({ props: true });42// f2.parse({ props: { color: 'asdf', numScales: 1 } });43// const badcheck2 = () => f2.parse({ name: 'a', props: { color: 'b', numScales: 3 } } as any);44// expect(badcheck2).toThrow();45// });46// test('f3', () => {47// const f3 = fish.pick({ props: { color: true } });48// f3.parse({ props: { color: 'b' } });49// const badcheck3 = () => f3.parse({ name: 'a', props: { color: 'b', numScales: 3 } } as any);50// expect(badcheck3).toThrow();51// });52// test('f4', () => {53// const badcheck4 = () => fish.pick({ props: { color: true, unknown: true } });54// expect(badcheck4).toThrow();55// });56// test('f6', () => {57// const f6 = fish.omit({ props: true });58// const badcheck6 = () => f6.parse({ name: 'a', props: { color: 'b', numScales: 3 } } as any);59// f6.parse({ name: 'adsf' });60// expect(badcheck6).toThrow();61// });62// test('f7', () => {63// const f7 = fish.omit({ props: { color: true } });64// f7.parse({ name: 'a', props: { numScales: 3 } });65// const badcheck7 = () => f7.parse({ name: 'a', props: { color: 'b', numScales: 3 } } as any);66// expect(badcheck7).toThrow();67// });68// test('f8', () => {69// const badcheck8 = () => fish.omit({ props: { color: true, unknown: true } });70// expect(badcheck8).toThrow();71// });72// test('f9', () => {73// const f9 = nonStrict.pick(true);74// f9.parse({ name: 'a', color: 'asdf' });75// });76// test('f10', () => {77// const f10 = nonStrict.pick({ name: true });78// f10.parse({ name: 'a' });79// const val = f10.parse({ name: 'a', color: 'b' });80// expect(val).toEqual({ name: 'a' });81// });82// test('f12', () => {83// const badfcheck12 = () => nonStrict.omit({ color: true, asdf: true });84// expect(badfcheck12).toThrow();85// });86 87// test('array masking', () => {88// const fishArray = z.array(fish);89// const modFishArray = fishArray.pick({90// name: true,91// props: {92// numScales: true,93// },94// });95 96// modFishArray.parse([{ name: 'fish', props: { numScales: 12 } }]);97// const bad1 = () => modFishArray.parse([{ name: 'fish', props: { numScales: 12, color: 'asdf' } }] as any);98// expect(bad1).toThrow();99// });100 101// test('array masking', () => {102// const fishArray = z.array(fish);103// const fail = () =>104// fishArray.pick({105// name: true,106// props: {107// whatever: true,108// },109// } as any);110// expect(fail).toThrow();111// });112 113// test('array masking', () => {114// const fishArray = z.array(fish);115// const fail = () =>116// fishArray.omit({117// whateve: true,118// } as any);119// expect(fail).toThrow();120// });121 122// test('array masking', () => {123// const fishArray = z.array(fish);124// const modFishList = fishArray.omit({125// name: true,126// props: {127// color: true,128// },129// });130 131// modFishList.parse([{ props: { numScales: 12 } }]);132// const fail = () => modFishList.parse([{ name: 'hello', props: { numScales: 12 } }] as any);133// expect(fail).toThrow();134// });135 136// test('primitive array masking', () => {137// const fishArray = z.array(z.number());138// const fail = () => fishArray.pick({} as any);139// expect(fail).toThrow();140// });141 142// test('other array masking', () => {143// const fishArray = z.array(z.array(z.number()));144// const fail = () => fishArray.pick({} as any);145// expect(fail).toThrow();146// });147 148// test('invalid mask #1', () => {149// const fail = () => fish.pick(1 as any);150// expect(fail).toThrow();151// });152 153// test('invalid mask #2', () => {154// const fail = () => fish.pick([] as any);155// expect(fail).toThrow();156// });157 158// test('invalid mask #3', () => {159// const fail = () => fish.pick(false as any);160// expect(fail).toThrow();161// });162 163// test('invalid mask #4', () => {164// const fail = () => fish.pick('asdf' as any);165// expect(fail).toThrow();166// });167 168// test('invalid mask #5', () => {169// const fail = () => fish.omit(1 as any);170// expect(fail).toThrow();171// });172 173// test('invalid mask #6', () => {174// const fail = () => fish.omit([] as any);175// expect(fail).toThrow();176// });177 178// test('invalid mask #7', () => {179// const fail = () => fish.omit(false as any);180// expect(fail).toThrow();181// });182 183// test('invalid mask #8', () => {184// const fail = () => fish.omit('asdf' as any);185// expect(fail).toThrow();186// });187 