UNPKG

als-statistics

Version:

Modular JS statistics toolkit for Node.js and the browser: descriptive stats, correlations (Pearson/Spearman/Kendall), t-tests & ANOVA (Student/Welch), reliability (Cronbach’s alpha), regression (linear/logistic), clustering (DBSCAN/HDBSCAN), and table/co

21 lines (17 loc) 794 B
import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { Counter } from '../../lib/utils/counter.js'; describe('Couter tests', () => { it('Counter: автоимена', () => { const c = new Counter('col'); assert.equal(c.getName(), 'col1'); assert.equal(c.getName(), 'col2'); assert.equal(c.getName(), 'col3'); }); it('Counter: переданное имя (не должно увеличивать счётчик, если так задумано)', () => { const c = new Counter('row'); assert.equal(c.getName('X'), 'X'); const next = c.getName(); assert.equal(next, 'row1'); // если твоя логика иная — откорректируй ожидание }); })