Responses for exercises in Exercism.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
933 B

defmodule LasagnaTest do
use ExUnit.Case
doctest Lasagna
@tag task_id: 1
test "expected minutes in oven" do
assert Lasagna.expected_minutes_in_oven() === 40
end
@tag task_id: 2
test "remaining minutes in oven" do
assert Lasagna.remaining_minutes_in_oven(25) === 15
end
@tag task_id: 3
test "preparation time in minutes for one layer" do
assert Lasagna.preparation_time_in_minutes(1) === 2
end
@tag task_id: 3
test "preparation time in minutes for multiple layers" do
assert Lasagna.preparation_time_in_minutes(4) === 8
end
@tag task_id: 4
test "total time in minutes for one layer" do
assert Lasagna.total_time_in_minutes(1, 30) === 32
end
@tag task_id: 4
test "total time in minutes for multiple layers" do
assert Lasagna.total_time_in_minutes(4, 8) === 16
end
@tag task_id: 5
test "notification message" do
assert Lasagna.alarm() === "Ding!"
end
end