Update README.md
[tech-radar.git] / test / utils / fib-spec.js
1 describe('tr.util.Fib', function () {
2 it('returns the fibonacci sequence', function () {
3 var fib = new tr.util.Fib();
4
5 expect(fib.sequence(5)).toEqual([0, 1, 1, 2, 3]);
6 });
7
8 it('returns the sum of a sequence', function () {
9 var fib = new tr.util.Fib();
10
11 expect(fib.sum(5)).toEqual(12);
12 });
13 });