projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb341bd
)
Shift-right is busted on large shifts.
author
Taylor R Campbell
<campbell@mumble.net>
Fri, 14 Dec 2018 16:44:12 +0000
(16:44 +0000)
committer
Taylor R Campbell
<campbell@mumble.net>
Sat, 15 Dec 2018 22:33:21 +0000
(22:33 +0000)
tests/runtime/test-integer-bits.scm
patch
|
blob
|
history
diff --git
a/tests/runtime/test-integer-bits.scm
b/tests/runtime/test-integer-bits.scm
index 575c7a5a8a83fd685d217ae957c7eb5d798152eb..531d08d9e5ae6800357c56929cf27619b79754eb 100644
(file)
--- a/
tests/runtime/test-integer-bits.scm
+++ b/
tests/runtime/test-integer-bits.scm
@@
-463,3
+463,9
@@
USA.
(define-test 'UTF8-N:5 (lambda () (assert-= 5 (utf8-n #b11111001))))
(define-test 'UTF8-N:6 (lambda () (assert-= 6 (utf8-n #b11111101))))
+
\f
+(define-test 'SHIFT-RIGHT/TOO-MANY
+ (lambda ()
+ (expect-failure
+ (lambda ()
+ (assert-= (shift-right (identity-procedure 1234567) 100) 0)))))
\ No newline at end of file