Skip to content

Commit

Permalink
Merge pull request #2 from pmpknu/p19
Browse files Browse the repository at this point in the history
typo(p19) fix fmt
  • Loading branch information
pmpknu authored Oct 29, 2024
2 parents 24bd133 + 0ac53d4 commit 06ea1a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion p19/lib/date.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
let is_leap year = (year mod 4 = 0 && year mod 100 <> 0) || year mod 400 = 0

let%test "is_leap for leap year 2000" = is_leap 2000 = true
let%test "is_leap for leap year 2020" = is_leap 2020 = true
let%test "is_leap for non-leap year 1900" = is_leap 1900 = false
Expand Down
2 changes: 1 addition & 1 deletion p19/lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
(inline_tests
(flags (-verbose)))
(preprocess
(pps ppx_inline_test)))
(pps ppx_inline_test)))

0 comments on commit 06ea1a6

Please sign in to comment.