From f9d39103ed223f86b77e17a4e9bab9f8fcd15b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Jureti=C4=87?= Date: Sat, 28 Sep 2013 19:25:46 -0300 Subject: [PATCH] add test of 'to next level' experience --- tests/algos.mocha.coffee | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/algos.mocha.coffee b/tests/algos.mocha.coffee index 853a303341..3cd6a62cd9 100644 --- a/tests/algos.mocha.coffee +++ b/tests/algos.mocha.coffee @@ -287,3 +287,10 @@ describe 'Helper', -> expect(helpers.silver(1.957)).to.eql 95 expect(helpers.silver(0.01)).to.eql "01" expect(helpers.silver()).to.eql "00" + + it 'calculates experience to next level', -> + expect(algos.tnl 1).to.eql 150 + expect(algos.tnl 2).to.eql 160 + expect(algos.tnl 10).to.eql 260 + expect(algos.tnl 99).to.eql 3580 + expect(algos.tnl 100).to.eql 0