this repo has no description
1var Day1 = require('../lib/day1');
2
3var expect = require('chai').expect;
4
5describe('Day1', function() {
6 describe('#floorCount', function() {
7 it('returns appropriate floor count from input', function() {
8 expect(Day1.floorCount('(((())')).to.equal(2);
9 expect(Day1.floorCount('))))')).to.equal(-4);
10 });
11 });
12
13 describe('#entersBasementAt', function() {
14 it('returns the char position when first entering basement', function() {
15 expect(Day1.entersBasementAt(')')).to.equal(1);
16 expect(Day1.entersBasementAt('((())))(()))')).to.equal(7);
17 });
18 });
19});