-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use linkedlist/utils.{div_ceil} | ||
|
||
// Test Case 1 | ||
// Test when a is divisible by b | ||
test div_ceil_1() { | ||
div_ceil(10, 5) == 2 | ||
} | ||
|
||
// Test Case 2 | ||
// Test when a is not divisible by b | ||
test div_ceil_2() { | ||
div_ceil(7, 3) == 3 | ||
} | ||
|
||
// Test Case 3 | ||
// Test when a is 0 | ||
test div_ceil_3() { | ||
div_ceil(0, 5) == 0 | ||
} | ||
|
||
// Test Case 4 | ||
// Test when b is 1 | ||
test div_ceil_4() { | ||
div_ceil(10, 1) == 10 | ||
} |