source: Update the code to test point in C.