Skip to content

Commit

Permalink
Reformat test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
keiravillekode committed May 8, 2024
1 parent 5ae36af commit 818d7d7
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions exercises/practice/pythagorean-triplet/pythagorean-triplet-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,24 @@


(ert-deftest several-matching-triplets ()
(should (equal '((40 399 401) (56 390 394) (105 360 375) (120 350 370) (140 336 364) (168 315 357) (210 280 350) (240 252 348)) (triplets-with-sum 840))))
(should (equal '((40 399 401)
(56 390 394)
(105 360 375)
(120 350 370)
(140 336 364)
(168 315 357)
(210 280 350)
(240 252 348))
(triplets-with-sum 840))))


(ert-deftest triplets-for-large-number ()
(should (equal '((1200 14375 14425) (1875 14000 14125) (5000 12000 13000) (6000 11250 12750) (7500 10000 12500)) (triplets-with-sum 30000))))
(should (equal '((1200 14375 14425)
(1875 14000 14125)
(5000 12000 13000)
(6000 11250 12750)
(7500 10000 12500))
(triplets-with-sum 30000))))


(provide 'pythagorean-triplet-test)
Expand Down

0 comments on commit 818d7d7

Please sign in to comment.