...

/

Exercise: Create a Unit Test

Exercise: Create a Unit Test

Learn to test as part of learning a new programming language.

We'll cover the following...

Description

Unlike the other code challenges, this one won’t give you a grade or test the accuracy of what you’re doing. It will be your responsibility to validate if a function is properly implemented by creating a unit test for it.

The function that you’ll test will be the solution for the minimum height triangle solved in the following way:

Press + to interact
(defn minimum-height
[base area]
(int (Math/ceil (/ (* 2 area) base))))

We found the smallest integer that will be the value of the ...

Access this course and 1400+ top-rated courses and projects.