@@ -9,31 +9,31 @@ let ae exp got _test_ctxt = assert_equal ~printer:option_printer exp got
99
1010let tests = [
1111 " Smallest perfect number is classified correctly" > ::
12- ae (Ok " perfect" ) (classify 6 );
12+ ae (Ok " perfect" ) (classify ( 6 ) );
1313 " Medium perfect number is classified correctly" > ::
14- ae (Ok " perfect" ) (classify 28 );
14+ ae (Ok " perfect" ) (classify ( 28 ) );
1515 " Large perfect number is classified correctly" > ::
16- ae (Ok " perfect" ) (classify 33550336 );
16+ ae (Ok " perfect" ) (classify ( 33550336 ) );
1717 " Smallest abundant number is classified correctly" > ::
18- ae (Ok " abundant" ) (classify 12 );
18+ ae (Ok " abundant" ) (classify ( 12 ) );
1919 " Medium abundant number is classified correctly" > ::
20- ae (Ok " abundant" ) (classify 30 );
20+ ae (Ok " abundant" ) (classify ( 30 ) );
2121 " Large abundant number is classified correctly" > ::
22- ae (Ok " abundant" ) (classify 33550335 );
22+ ae (Ok " abundant" ) (classify ( 33550335 ) );
2323 " Smallest prime deficient number is classified correctly" > ::
24- ae (Ok " deficient" ) (classify 2 );
24+ ae (Ok " deficient" ) (classify ( 2 ) );
2525 " Smallest non-prime deficient number is classified correctly" > ::
26- ae (Ok " deficient" ) (classify 4 );
26+ ae (Ok " deficient" ) (classify ( 4 ) );
2727 " Medium deficient number is classified correctly" > ::
28- ae (Ok " deficient" ) (classify 32 );
28+ ae (Ok " deficient" ) (classify ( 32 ) );
2929 " Large deficient number is classified correctly" > ::
30- ae (Ok " deficient" ) (classify 33550337 );
30+ ae (Ok " deficient" ) (classify ( 33550337 ) );
3131 " Edge case (no factors other than itself) is classified correctly" > ::
32- ae (Ok " deficient" ) (classify 1 );
32+ ae (Ok " deficient" ) (classify ( 1 ) );
3333 " Zero is rejected (as it is not a positive integer)" > ::
34- ae (Error " Classification is only possible for positive integers." ) (classify 0 );
34+ ae (Error " Classification is only possible for positive integers." ) (classify ( 0 ) );
3535 " Negative integer is rejected (as it is not a positive integer)" > ::
36- ae (Error " Classification is only possible for positive integers." ) (classify - 1 );
36+ ae (Error " Classification is only possible for positive integers." ) (classify ( - 1 ) );
3737]
3838
3939let () =
0 commit comments