var palindrone = require('../src/palindrone.js');
describe('Palindrone test suite', function() {
	it('should get a list of palindromic sequences', function(){
		palindrone.fn.init('this string has 3 palindromes in it, kayak');
		palindrone.fn.findPalindromicSequences();
		expect(palindrone.foundPalindromicSequences.length)
		.toBe(3);

		palindrone.fn.init('this string has 4 palindromes in it, kayak, bob');
		palindrone.fn.findPalindromicSequences();
		expect(palindrone.foundPalindromicSequences.length)
		.toBe(4);
	});
});

@@ -152,16 +152,457 @@
 tion()%7B%0A
+%09%09palindrone.fn.init('');%0A%09%09palindrone.fn.findPalindromicSequences();%0A%09%09expect(palindrone.foundPalindromicSequences.length)%0A%09%09.toBe(0);%0A%0A%09%09palindrone.fn.init('no palindrome');%0A%09%09palindrone.fn.findPalindromicSequences();%0A%09%09expect(palindrone.foundPalindromicSequences.length)%0A%09%09.toBe(0);%0A%0A%09%09palindrone.fn.init('only 1 palindrome');%0A%09%09palindrone.fn.findPalindromicSequences();%0A%09%09expect(palindrone.foundPalindromicSequences.length)%0A%09%09.toBe(1);%0A%0A
 %09%09palind
@@ -631,17 +631,17 @@
 ing has 
-3
+2
  palindr
@@ -650,23 +650,16 @@
 es in it
-, kayak
 ');%0A%09%09pa
@@ -764,9 +764,9 @@
 oBe(
-3
+2
 );%0A%0A
@@ -803,17 +803,17 @@
 ing has 
-4
+3
  palindr
@@ -833,13 +833,8 @@
 ayak
-, bob
 ');%0A
@@ -943,9 +943,239 @@
 oBe(
-4
+3);%0A%09%7D);%0A%0A%09it('should get a maximum of 3 palindromic sequences', function()%7B%0A%09%09expect(%0A%09%09%09palindrone('this string has 4 palindromes in it, kayak, bob').length%0A%09%09).toBe(3);%0A%0A%09%09expect(%0A%09%09%09palindrone('no palindrome').length%0A%09%09).toBe(0
 );%0A%09

Add new tests