Skip to content

Commit

Permalink
solution and test for problem llipio#32
Browse files Browse the repository at this point in the history
  • Loading branch information
rkalra247 committed May 31, 2017
1 parent cf3100d commit d37fb3a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions solutions/33.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ const solution= (array,x) =>{
return newArray;
};

console.log('hi');
module.exports = {solution};
13 changes: 13 additions & 0 deletions test/32.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//Rahul Kalra
//Test for finding Single Value withing the array
//input: [1,1,2,3,4,3,4]
//output: [2]

const expect = require('chai').expect;
let solution = require('../solutions/32').solution;
describe('Finding a Singleton',() =>{
it.only('should return [2] for [1,1,2,3,4,3,4]',() =>{
const result = solution ([1,1,2,3,4,3,4]);
expect(result).to.eql([2]);
});
});

0 comments on commit d37fb3a

Please sign in to comment.