Ad
  • Default User Avatar

    Thank you, now all cleared :-)

  • Default User Avatar

    I wrote

    console.log('pattern = ' + pattern + ' / str = ' + str);
    

    and got

    pattern = aafggiilp / str = cow cow fly pig pig sheep sheep chicken aardvark
    Expected: true, instead got: false
    

    aaffggiilp != ccfppssca
    but test expected true answer

  • Default User Avatar

    in Javascript 10th test looks like

    Test.assertEquals(wordPattern('aafggiilp', 'cow cow fly pig pig sheep sheep chicken aardvark'), true);
    

    it's wrong
    please fix it