Added test function for compare_char().
Updated compare_char().

Changing range(0,25) to range(0,26) got the last test case to work.