ptoect
Some checks failed
CI / ci (push) Has been cancelled

This commit is contained in:
mokangleb1818-crypto
2026-05-18 10:55:29 +03:00
commit 61b4c108c2
4001 changed files with 1385100 additions and 0 deletions

15
tests/index.test.ts Normal file
View File

@@ -0,0 +1,15 @@
import { sum, isEven, reverse } from '../src/index';
import { test, expect } from 'vitest';
test('sum adds numbers', () => {
expect(sum(2, 3)).toBe(5);
});
test('isEven detects even numbers', () => {
expect(isEven(4)).toBe(true);
expect(isEven(5)).toBe(false);
});
test('reverse reverses string', () => {
expect(reverse('hello')).toBe('olleh');
});