UNPKG

als-statistics

Version:

A powerful and lightweight JavaScript library for descriptive statistics, regression, clustering, outlier detection, and noise analysis using a flexible table/column architecture.

15 lines (13 loc) 490 B
const { describe, it } = require('node:test'); const assert = require('node:assert'); const range = require('../../lib/utils/range'); describe('range utility', () => { it('should correctly generate interval values', () => { const values = range(10, 25, 5); assert.deepStrictEqual(values, [10, 15, 20]); }); it('should handle single step correctly', () => { const values = range(1, 5); assert.deepStrictEqual(values, [1, 2, 3, 4]); }); });