import palidrome from '../palindrome'

describe('palidrome() tests', ():void => {

	it('p to be true', ():void => {
		expect(palidrome('p')).toBe(true);
	})

	it('racecar to be true', ():void => {
		expect(palidrome('racecar')).toBe(true);
	})

	it('my gym to be true', ():void => {
		expect(palidrome('my gym')).toBe(true);
	})

	it('foo to be false', ():void => {
		expect(palidrome('foo')).toBe(false);
	})

	it('just some random words to be false', ():void => {
		expect(palidrome('just some random words')).toBe(false);
	})
})

describe('edge cases', ():void => {

	it('Kayak to be true', ():void => {
		expect(palidrome('Kayak')).toBe(true);
	})

	it('a santa at NASA to be true', ():void => {
		expect(palidrome('a santa at NASA')).toBe(true);
	})

})



// // TEST CODE
// // These should all pass assertion, but they don't.

// // Bonus / Stretch: Uncomment these tests and figure out why these are also failing
// assertPalindrome('Kayak', true);
// assertPalindrome('a santa at NASA', true);