forked from gambit/gambit
-
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
James Baker
committed
Feb 5, 2016
1 parent
357836e
commit a7219ab
Showing
1 changed file
with
15 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
(include "#.scm") | ||
|
||
(check-eqv? (fxwrapquotient 1 1) 1) | ||
(check-eqv? (fxwrapquotient -3 2) -1) | ||
(check-eqv? (fxwrapquotient -6 -4) 1) | ||
(check-eqv? (fxwrapquotient -8 -4) 2) | ||
|
||
(check-tail-exn divide-by-zero-exception? (lambda () (fxwrapquotient 1 0))) | ||
|
||
(check-tail-exn wrong-number-of-arguments-exception? (lambda () (fxwrapquotient))) | ||
(check-tail-exn wrong-number-of-arguments-exception? (lambda () (fxwrapquotient 1))) | ||
(check-tail-exn wrong-number-of-arguments-exception? (lambda () (fxwrapquotient 1 1 1))) | ||
|
||
(check-tail-exn type-exception? (lambda () (fxwrapquotient 1 0.5))) | ||
(check-tail-exn type-exception? (lambda () (fxwrapquotient 1 1/2))) |