daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Mar 21st, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   assert(str_length("String") == 6);
  2.   assert(str_length(" ") == 1);
  3.   assert(str_length("ABC") == 3);
  4.   assert(str_length("0a jsd 00") == 9);
  5.   assert(str_occur("tester", "te") == 2);
  6.   assert(str_occur("eeeee", "ee") == 4);
  7.   assert(str_occur("ABCBABABA", "AB") == 3);
  8.   assert(str_occur("ABC", "ABC ") == 0);
  9.   assert(str_occur("String", "String") == 1);
  10.   assert(str_occur("h sdfghjklasihdh ", "h ") == 2);
  11.   assert(is_palindrome("racecar") == true);
  12.   assert(is_palindrome("race car") == true);
  13.   assert(is_palindrome("12345") == true);
  14.   assert(is_palindrome("    abcBA") == true);
  15.   assert(is_palindrome(";#:@/@;!x;#/&:x") == true);
  16.   assert(is_palindrome("abcdcb") == false);
  17.   assert(is_palindrome("abcdba") == false);
  18.   assert(is_palindrome("A") == true);
  19.   assert(is_palindrome("x--==123y;'.///x") == true);
  20.   assert(is_isogram("abcdefghij") == true);
  21.   assert(is_isogram("a wo rd") == true);
  22.   assert(is_isogram("wertyuiop123444444444444444444444444") == true);
  23.   assert(is_isogram("1238 ") == true);
  24.   assert(is_isogram("askd!$") == true);
  25.   assert(is_isogram("Akajdn") == false);
  26.   assert(is_isogram("Bsa a ") == false);
  27.   assert(is_anagram("restful", "fluster") == true);
  28.   assert(is_anagram("a word", "aword") == true);
  29.   assert(is_anagram("r.e.s-t+f!u%l", "fluster") == true);
  30.   assert(is_anagram("(*&(*&*&(*&(*&%%$%$", "%$%#$#$#") == true);
  31.   assert(is_anagram("abc", "abc") == true);
  32.   assert(is_anagram("a", " ") == false);
  33.   assert(is_anagram("Abc @,", "##a b c") == true);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top