Nicolas Cellier uploaded a new version of ShoutCore to project The Trunk:
http://source.squeak.org/trunk/ShoutCore-nice.41.mcz
==================== Summary ====================
Name: ShoutCore-nice.41
Author: nice
Time: 14 March 2014, 11:13:43.751 pm
UUID: 3974817a-996f-4fa8-b397-d727f7c27542
Ancestors: ShoutCore-cwp.40
There can be more characters after a vertical bar (|) in a binary selector for a while now, tell Shout about it.
=============== Diff against ShoutCore-cwp.40 ===============
Item was changed:
----- Method: SHParserST80>>scanBinary (in category 'scan') -----
scanBinary
| c d |
c := self currentChar.
currentTokenSourcePosition := sourcePosition.
currentToken := c asString.
d := self nextChar.
((self isSelectorCharacter: c) or: [c == $:]) ifFalse: [^currentToken].
(c == $: and: [d == $=])
ifTrue: [" := assignment"
currentToken := currentToken , d asString.
self nextChar.
^currentToken].
- c == $| ifTrue:["| cannot precede a longer token" ^currentToken].
[self isSelectorCharacter: d]
whileTrue: [
currentToken := currentToken , d asString.
d := self nextChar].
^currentToken!
Nicolas Cellier uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.262.mcz
==================== Summary ====================
Name: KernelTests-nice.262
Author: nice
Time: 13 March 2014, 1:52:32.328 am
UUID: c70b95a4-48a3-47aa-b9e8-b6abdbf8004f
Ancestors: KernelTests-nice.261
Assert that nthRoot is exact on more cases.
Note how current implementation fails.
=============== Diff against KernelTests-nice.261 ===============
Item was added:
+ ----- Method: IntegerTest>>testNthRootExactness (in category 'tests - mathematical functions') -----
+ testNthRootExactness
+ | inexactRoots largeExactPowersOf6 |
+ largeExactPowersOf6 := (2 to: 100) collect: [:k | k raisedTo: 66].
+ inexactRoots := largeExactPowersOf6 reject: [:e | (e nthRoot: 6) isInteger].
+ self assert: inexactRoots isEmpty description: 'Failed to find the exact 6th root of these numbers'!
Nicolas Cellier uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.262.mcz
==================== Summary ====================
Name: KernelTests-nice.262
Author: nice
Time: 13 March 2014, 1:52:32.328 am
UUID: c70b95a4-48a3-47aa-b9e8-b6abdbf8004f
Ancestors: KernelTests-nice.261
Assert that nthRoot is exact on more cases.
Note how current implementation fails.
=============== Diff against KernelTests-nice.261 ===============
Item was added:
+ ----- Method: IntegerTest>>testNthRootExactness (in category 'tests - mathematical functions') -----
+ testNthRootExactness
+ | inexactRoots largeExactPowersOf6 |
+ largeExactPowersOf6 := (2 to: 100) collect: [:k | k raisedTo: 66].
+ inexactRoots := largeExactPowersOf6 reject: [:e | (e nthRoot: 6) isInteger].
+ self assert: inexactRoots isEmpty description: 'Failed to find the exact 6th root of these numbers'!
Nicolas Cellier uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.262.mcz
==================== Summary ====================
Name: KernelTests-nice.262
Author: nice
Time: 13 March 2014, 1:52:32.328 am
UUID: c70b95a4-48a3-47aa-b9e8-b6abdbf8004f
Ancestors: KernelTests-nice.261
Assert that nthRoot is exact on more cases.
Note how current implementation fails.
=============== Diff against KernelTests-nice.261 ===============
Item was added:
+ ----- Method: IntegerTest>>testNthRootExactness (in category 'tests - mathematical functions') -----
+ testNthRootExactness
+ | inexactRoots largeExactPowersOf6 |
+ largeExactPowersOf6 := (2 to: 100) collect: [:k | k raisedTo: 66].
+ inexactRoots := largeExactPowersOf6 reject: [:e | (e nthRoot: 6) isInteger].
+ self assert: inexactRoots isEmpty description: 'Failed to find the exact 6th root of these numbers'!