Devise, document and implement tests for computePiInHex() function