Ad
  • Custom User Avatar

    the first test is wrong. Should expect "9401D3", which still is not what the solution gives though.

    But you are right, the testbench is bad if it doesnt check for correctly using 2 digits to represent values < 10 (well it probably does test 0 which we here have a hardcoded solution for.. notice how he uses <= instead of < to catch the 0 case)