Skip to content

Commit

Permalink
fix: height and width were mixed up
Browse files Browse the repository at this point in the history
  • Loading branch information
Fingerzam committed Oct 17, 2012
1 parent 4fb14bd commit c20dc4d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/structured_data_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
(cutify [1 2 3]) => [1 2 3 "<3"]
(cutify ["a" "b"]) => ["a" "b" "<3"])

(facts "height"
(height (rectangle [1 1] [5 1])) => 4
(height (rectangle [1 1] [1 1])) => 0
(height (rectangle [3 1] [10 4])) => 7)

(facts "width"
(width (rectangle [1 1] [5 1])) => 0
(width (rectangle [1 1] [5 5])) => 4
(width (rectangle [0 0] [2 3])) => 3)
(width (rectangle [1 1] [5 1])) => 4
(width (rectangle [1 1] [1 1])) => 0
(width (rectangle [3 1] [10 4])) => 7)

(facts "height"
(height (rectangle [1 1] [5 1])) => 0
(height (rectangle [1 1] [5 5])) => 4
(height (rectangle [0 0] [2 3])) => 3)

(facts "area"
(area (rectangle [1 1] [5 1])) => 0
Expand Down

0 comments on commit c20dc4d

Please sign in to comment.