added two test cases
This commit is contained in:
parent
1463621bdb
commit
77fee95759
@ -206,8 +206,20 @@ extend MyObject
|
|||||||
[ (0 rem: -50000000000000000000000000000000000000000000000000000000000000000000) = 0 ],
|
[ (0 rem: -50000000000000000000000000000000000000000000000000000000000000000000) = 0 ],
|
||||||
[ (16r2dd01fc06c265c8163ac729b49d890939826ce3dd div: 16r3b9aca00) = 4184734490355220618401938634485367707982 ],
|
[ (16r2dd01fc06c265c8163ac729b49d890939826ce3dd div: 16r3b9aca00) = 4184734490355220618401938634485367707982 ],
|
||||||
[ (16r2dd01fc06c265c8163ac729b49d890939826ce3dd rem: 16r3b9aca00) = 394876893 ],
|
[ (16r2dd01fc06c265c8163ac729b49d890939826ce3dd rem: 16r3b9aca00) = 394876893 ],
|
||||||
[ (16rFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF bitAnd: 16r1111111111111111111111111111111111111111) = 16r1111111111111111111111111111111111111111 ]
|
[ (16rFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF bitAnd: 16r1111111111111111111111111111111111111111) = 16r1111111111111111111111111111111111111111 ],
|
||||||
|
|
||||||
|
|
||||||
|
## 60-64
|
||||||
|
[
|
||||||
|
| b |
|
||||||
|
b := [:n | (n > 0) ifTrue: [ n * (b value: n - 1)] ifFalse: [1]].
|
||||||
|
(b value: 3) == 6
|
||||||
|
],
|
||||||
|
[
|
||||||
|
| b |
|
||||||
|
b := [:n | (n > 0) ifTrue: [ (b value: n - 1) * n] ifFalse: [1]].
|
||||||
|
(b value: 3) == 6
|
||||||
|
]
|
||||||
).
|
).
|
||||||
|
|
||||||
limit := tc size.
|
limit := tc size.
|
||||||
|
Loading…
Reference in New Issue
Block a user