deck-beaufort/src/beaufort_test.j
use testing;
func testCalm() {
testing.assertEqual(force(0), 0);
}
func testLimitsBelongToTheForceAbove() {
testing.assertEqual(force(38), 5);
testing.assertEqual(force(39), 6);
}
func testHurricaneIsTheTop() {
testing.assertEqual(force(118), 12);
testing.assertEqual(force(300), 12);
}
func testNegativeSpeedThrows() {
testing.assertThrowsArgs("force", [-1], "beaufort");
}