forked from unimatrix/web
6 lines
558 B
JavaScript
6 lines
558 B
JavaScript
import test from 'node:test';import assert from 'node:assert/strict';
|
|
import {XP_POLICY,xpAtLevel,levelForXP} from '../node/progression-definitions.mjs';
|
|
test('the personal season cap is level 100 and the curve stays inside the supported range',()=>{
|
|
assert.equal(XP_POLICY.seasonCap,100);assert.equal(xpAtLevel(100,XP_POLICY.base),123750);
|
|
assert.equal(levelForXP(60375,{base:25,cap:XP_POLICY.seasonCap}),70);assert.equal(levelForXP(123750,{base:25,cap:XP_POLICY.seasonCap}),100);assert.equal(levelForXP(10**9,{base:25,cap:XP_POLICY.seasonCap}),100);
|
|
});
|

Staff