File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ import { alphaNumericPlaindrome } from "../AlphanumericPalindrome" ;
2+
3+ test ( "should return true if the given string has alphanumeric characters that are palindrom irrespective of case and symbols" , ( ) => {
4+ expect ( alphaNumericPlaindrome ( "eye" ) ) . toBe ( true )
5+ } )
6+
7+ test ( "should return true if the given string has alphanumeric characters that are palindrom irrespective of case and symbols" , ( ) => {
8+ expect ( alphaNumericPlaindrome ( "0_0 (: /-\ :) 0-0" ) ) . toBe ( true )
9+ } )
10+
11+ test ( "should return true if the given string has alphanumeric characters that are palindrom irrespective of case and symbols" , ( ) => {
12+ expect ( alphaNumericPlaindrome ( "five|\_/|four" ) ) . toBe ( false )
13+ } )
14+
15+ test ( "should return true if the given string has alphanumeric characters that are palindrom irrespective of case and symbols" , ( ) => {
16+ expect ( alphaNumericPlaindrome ( "A man, a plan, a canal. Panama" ) ) . toBe ( true )
17+ } )
18+
19+ test ( "should return true if the given string has alphanumeric characters that are palindrom irrespective of case and symbols" , ( ) => {
20+ expect ( alphaNumericPlaindrome ( "1 eye for of 1 eye." ) ) . toBe ( false )
21+ } )
You can’t perform that action at this time.
0 commit comments