UNPKG

classifier.js

Version:

:robot: Natural language processing with Javascript

18 lines (17 loc) 694 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const math_1 = require("../src/lib/math"); describe('Math lib', () => { it('should be able to sum two numbers', () => { expect((0, math_1.sumFunc)(2, 2)).toBe(4); expect((0, math_1.sumFunc)(3, 3)).toBe(6); }); it('should be able to multiply two numbers', () => { expect((0, math_1.multiplyFunc)(5, 5)).toBe(25); expect((0, math_1.multiplyFunc)(10, 10)).toBe(100); }); it('should be able to get the absolute value of a number', () => { expect((0, math_1.getAbsoluteValue)(-4)).toBe(4); expect((0, math_1.getAbsoluteValue)(-15)).toBe(15); }); });