deno.land / x / rambda@v9.1.1 / source / mathMod.spec.js

mathMod.spec.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
import { mathMod } from './mathMod.js'
test('happy', () => { expect(mathMod(-17)(5)).toBe(3) expect(mathMod(17, 5)).toBe(2) expect(mathMod(17, -5)).toBeNaN() expect(mathMod(17, 0)).toBeNaN() expect(mathMod('17', 5)).toBeNaN() expect(mathMod({}, 2)).toBeNaN() expect(mathMod([], 2)).toBeNaN() expect(mathMod(Symbol(), 2)).toBeNaN()})
rambda

Version Info

Tagged at
2 months ago