[Pharo-project] '.2e2' asNumber?

John M McIntosh johnmci at smalltalkconsulting.com
Fri Sep 25 16:01:52 EDT 2009


Given that I changed

Number (class) >>readFrom: stringOrStream
	"Answer a number as described on aStream.  The number may
	be any accepted Smalltalk literal Number format.
	It can include a leading radix specification, as in 16rFADE.
	It can as well be NaN, Infinity or -Infinity for conveniency.
	If stringOrStream does not start with a valid number description,  
answer 0 for backward compatibility. This is not clever and should  
better be changed."
	
	^(SqNumberParser on: stringOrStream) failBlock: [self error];  
nextNumber


then I make some data


#(

'.' '1.' '1.2'
'..1' '..12'
'-' '-.' '-.1' '-.12'
'-..' '-..1' '-..12'
'--.' '--..' '--..1' '--..12'


) do: [:string |
	string permutationsDo: [:each | | error value should |
		error := false.
		value := [each asNumber] ifError: [error := true. 'nil'].
		should := 'self should: [''',each,''' asNumber = ',value asString,']'.
		should := error
			ifFalse: [should,'.']
			ifTrue: [should,' raise: Error.'].
		Transcript show: should;cr ]].


That gives me this which I broke into three methods and stuck in  
SqNumberParserTest
Now the community gets to decide what is wrong or correct?
I guess I'll look at seeing how to talk to Wolfram alpha..


SqNumberParserTest >>testcheckForCoverage

self should: ['.' asNumber = nil] raise: Error.
self should: ['1.' asNumber = 1].
self should: ['.1' asNumber = nil] raise: Error.
self should: ['1.2' asNumber = 1.2].
self should: ['12.' asNumber = 12].
self should: ['.12' asNumber = nil] raise: Error.
self should: ['.21' asNumber = nil] raise: Error.
self should: ['2.1' asNumber = 2.1].
self should: ['21.' asNumber = 21].
self should: ['..1' asNumber = nil] raise: Error.
self should: ['.1.' asNumber = nil] raise: Error.
self should: ['..1' asNumber = nil] raise: Error.
self should: ['.1.' asNumber = nil] raise: Error.
self should: ['1..' asNumber = 1].
self should: ['1..' asNumber = 1].
self should: ['..12' asNumber = nil] raise: Error.
self should: ['..21' asNumber = nil] raise: Error.
self should: ['.1.2' asNumber = nil] raise: Error.
self should: ['.12.' asNumber = nil] raise: Error.
self should: ['.21.' asNumber = nil] raise: Error.
self should: ['.2.1' asNumber = nil] raise: Error.
self should: ['..12' asNumber = nil] raise: Error.
self should: ['..21' asNumber = nil] raise: Error.
self should: ['.1.2' asNumber = nil] raise: Error.
self should: ['.12.' asNumber = nil] raise: Error.
self should: ['.21.' asNumber = nil] raise: Error.
self should: ['.2.1' asNumber = nil] raise: Error.
self should: ['1..2' asNumber = 1].
self should: ['1.2.' asNumber = 1.2].
self should: ['1..2' asNumber = 1].
self should: ['1.2.' asNumber = 1.2].
self should: ['12..' asNumber = 12].
self should: ['12..' asNumber = 12].
self should: ['2.1.' asNumber = 2.1].
self should: ['2..1' asNumber = 2].
self should: ['21..' asNumber = 21].
self should: ['21..' asNumber = 21].
self should: ['2.1.' asNumber = 2.1].
self should: ['2..1' asNumber = 2].
self should: ['-' asNumber = nil] raise: Error.
self should: ['-.' asNumber = nil] raise: Error.
self should: ['.-' asNumber = nil] raise: Error.
self should: ['-.1' asNumber = nil] raise: Error.
self should: ['-1.' asNumber = -1].
self should: ['.-1' asNumber = nil] raise: Error.
self should: ['.1-' asNumber = nil] raise: Error.
self should: ['1.-' asNumber = 1].
self should: ['1-.' asNumber = 1].
self should: ['-.12' asNumber = nil] raise: Error.
self should: ['-.21' asNumber = nil] raise: Error.
self should: ['-1.2' asNumber = -1.2].
self should: ['-12.' asNumber = -12].
self should: ['-21.' asNumber = -21].
self should: ['-2.1' asNumber = -2.1].
self should: ['.-12' asNumber = nil] raise: Error.
self should: ['.-21' asNumber = nil] raise: Error.
self should: ['.1-2' asNumber = nil] raise: Error.
self should: ['.12-' asNumber = nil] raise: Error.
self should: ['.21-' asNumber = nil] raise: Error.
self should: ['.2-1' asNumber = nil] raise: Error.
self should: ['1.-2' asNumber = 1].
self should: ['1.2-' asNumber = 1.2].
self should: ['1-.2' asNumber = 1].
self should: ['1-2.' asNumber = 1].
self should: ['12-.' asNumber = 12].
self should: ['12.-' asNumber = 12].
self should: ['2.1-' asNumber = 2.1].
self should: ['2.-1' asNumber = 2].
self should: ['21.-' asNumber = 21].
self should: ['21-.' asNumber = 21].
self should: ['2-1.' asNumber = 2].
self should: ['2-.1' asNumber = 2].
self should: ['-..' asNumber = nil] raise: Error.
self should: ['-..' asNumber = nil] raise: Error.
self should: ['.-.' asNumber = nil] raise: Error.
self should: ['..-' asNumber = nil] raise: Error.
self should: ['..-' asNumber = nil] raise: Error.
self should: ['.-.' asNumber = nil] raise: Error.
self should: ['-..1' asNumber = nil] raise: Error.
self should: ['-.1.' asNumber = nil] raise: Error.
self should: ['-..1' asNumber = nil] raise: Error.
self should: ['-.1.' asNumber = nil] raise: Error.
self should: ['-1..' asNumber = -1].
self should: ['-1..' asNumber = -1].
self should: ['.-.1' asNumber = nil] raise: Error.
self should: ['.-1.' asNumber = nil] raise: Error.
self should: ['..-1' asNumber = nil] raise: Error.
self should: ['..1-' asNumber = nil] raise: Error.
self should: ['.1.-' asNumber = nil] raise: Error.
self should: ['.1-.' asNumber = nil] raise: Error.
self should: ['..-1' asNumber = nil] raise: Error.
self should: ['..1-' asNumber = nil] raise: Error.
self should: ['.-.1' asNumber = nil] raise: Error.
self should: ['.-1.' asNumber = nil] raise: Error.
self should: ['.1-.' asNumber = nil] raise: Error.
self should: ['.1.-' asNumber = nil] raise: Error.
self should: ['1..-' asNumber = 1].
self should: ['1.-.' asNumber = 1].
self should: ['1..-' asNumber = 1].
self should: ['1.-.' asNumber = 1].
self should: ['1-..' asNumber = 1].
self should: ['1-..' asNumber = 1].
self should: ['-..12' asNumber = nil] raise: Error.
self should: ['-..21' asNumber = nil] raise: Error.
self should: ['-.1.2' asNumber = nil] raise: Error.
self should: ['-.12.' asNumber = nil] raise: Error.
self should: ['-.21.' asNumber = nil] raise: Error.
self should: ['-.2.1' asNumber = nil] raise: Error.
self should: ['-..12' asNumber = nil] raise: Error.
self should: ['-..21' asNumber = nil] raise: Error.
self should: ['-.1.2' asNumber = nil] raise: Error.
self should: ['-.12.' asNumber = nil] raise: Error.
self should: ['-.21.' asNumber = nil] raise: Error.
self should: ['-.2.1' asNumber = nil] raise: Error.
self should: ['-1..2' asNumber = -1].
self should: ['-1.2.' asNumber = -1.2].
self should: ['-1..2' asNumber = -1].
self should: ['-1.2.' asNumber = -1.2].
self should: ['-12..' asNumber = -12].
self should: ['-12..' asNumber = -12].
self should: ['-2.1.' asNumber = -2.1].
self should: ['-2..1' asNumber = -2].
self should: ['-21..' asNumber = -21].
self should: ['-21..' asNumber = -21].
self should: ['-2.1.' asNumber = -2.1].
self should: ['-2..1' asNumber = -2].
self should: ['.-.12' asNumber = nil] raise: Error.
self should: ['.-.21' asNumber = nil] raise: Error.
self should: ['.-1.2' asNumber = nil] raise: Error.
self should: ['.-12.' asNumber = nil] raise: Error.
self should: ['.-21.' asNumber = nil] raise: Error.
self should: ['.-2.1' asNumber = nil] raise: Error.
self should: ['..-12' asNumber = nil] raise: Error.
self should: ['..-21' asNumber = nil] raise: Error.
self should: ['..1-2' asNumber = nil] raise: Error.
self should: ['..12-' asNumber = nil] raise: Error.
self should: ['..21-' asNumber = nil] raise: Error.
self should: ['..2-1' asNumber = nil] raise: Error.
self should: ['.1.-2' asNumber = nil] raise: Error.
self should: ['.1.2-' asNumber = nil] raise: Error.
self should: ['.1-.2' asNumber = nil] raise: Error.
self should: ['.1-2.' asNumber = nil] raise: Error.
self should: ['.12-.' asNumber = nil] raise: Error.
self should: ['.12.-' asNumber = nil] raise: Error.
self should: ['.2.1-' asNumber = nil] raise: Error.
self should: ['.2.-1' asNumber = nil] raise: Error.
self should: ['.21.-' asNumber = nil] raise: Error.
self should: ['.21-.' asNumber = nil] raise: Error.
self should: ['.2-1.' asNumber = nil] raise: Error.
self should: ['.2-.1' asNumber = nil] raise: Error.
self should: ['..-12' asNumber = nil] raise: Error.
self should: ['..-21' asNumber = nil] raise: Error.
self should: ['..1-2' asNumber = nil] raise: Error.
self should: ['..12-' asNumber = nil] raise: Error.
self should: ['..21-' asNumber = nil] raise: Error.
self should: ['..2-1' asNumber = nil] raise: Error.
self should: ['.-.12' asNumber = nil] raise: Error.
self should: ['.-.21' asNumber = nil] raise: Error.
self should: ['.-1.2' asNumber = nil] raise: Error.
self should: ['.-12.' asNumber = nil] raise: Error.
self should: ['.-21.' asNumber = nil] raise: Error.
self should: ['.-2.1' asNumber = nil] raise: Error.
self should: ['.1-.2' asNumber = nil] raise: Error.
self should: ['.1-2.' asNumber = nil] raise: Error.
self should: ['.1.-2' asNumber = nil] raise: Error.
self should: ['.1.2-' asNumber = nil] raise: Error.
self should: ['.12.-' asNumber = nil] raise: Error.
self should: ['.12-.' asNumber = nil] raise: Error.
self should: ['.2-1.' asNumber = nil] raise: Error.
self should: ['.2-.1' asNumber = nil] raise: Error.
self should: ['.21-.' asNumber = nil] raise: Error.
self should: ['.21.-' asNumber = nil] raise: Error.
self should: ['.2.1-' asNumber = nil] raise: Error.
self should: ['.2.-1' asNumber = nil] raise: Error.
self should: ['1..-2' asNumber = 1].
self should: ['1..2-' asNumber = 1].
self should: ['1.-.2' asNumber = 1].
self should: ['1.-2.' asNumber = 1].
self should: ['1.2-.' asNumber = 1.2].
self should: ['1.2.-' asNumber = 1.2].
self should: ['1..-2' asNumber = 1].
self should: ['1..2-' asNumber = 1].
self should: ['1.-.2' asNumber = 1].
self should: ['1.-2.' asNumber = 1].
self should: ['1.2-.' asNumber = 1.2].
self should: ['1.2.-' asNumber = 1.2].
self should: ['1-..2' asNumber = 1].
self should: ['1-.2.' asNumber = 1].
self should: ['1-..2' asNumber = 1].
self should: ['1-.2.' asNumber = 1].
self should: ['1-2..' asNumber = 1].
self should: ['1-2..' asNumber = 1].
self should: ['12.-.' asNumber = 12].
self should: ['12..-' asNumber = 12].
self should: ['12-..' asNumber = 12].
self should: ['12-..' asNumber = 12].
self should: ['12.-.' asNumber = 12].
self should: ['12..-' asNumber = 12].
self should: ['2..1-' asNumber = 2].
self should: ['2..-1' asNumber = 2].
self should: ['2.1.-' asNumber = 2.1].
self should: ['2.1-.' asNumber = 2.1].
self should: ['2.-1.' asNumber = 2].
self should: ['2.-.1' asNumber = 2].
self should: ['2..1-' asNumber = 2].
self should: ['2..-1' asNumber = 2].
self should: ['2.1.-' asNumber = 2.1].
self should: ['2.1-.' asNumber = 2.1].
self should: ['2.-1.' asNumber = 2].
self should: ['2.-.1' asNumber = 2].
self should: ['21..-' asNumber = 21].
self should: ['21.-.' asNumber = 21].
self should: ['21..-' asNumber = 21].
self should: ['21.-.' asNumber = 21].
self should: ['21-..' asNumber = 21].
self should: ['21-..' asNumber = 21].
self should: ['2-.1.' asNumber = 2].
self should: ['2-..1' asNumber = 2].
self should: ['2-1..' asNumber = 2].
self should: ['2-1..' asNumber = 2].
self should: ['2-.1.' asNumber = 2].
self should: ['2-..1' asNumber = 2].


SqNumberParserTest >>testcheckForCoverage2

self should: ['--.' asNumber = nil] raise: Error.
self should: ['-.-' asNumber = nil] raise: Error.
self should: ['--.' asNumber = nil] raise: Error.
self should: ['-.-' asNumber = nil] raise: Error.
self should: ['.--' asNumber = nil] raise: Error.
self should: ['.--' asNumber = nil] raise: Error.
self should: ['--..' asNumber = nil] raise: Error.
self should: ['--..' asNumber = nil] raise: Error.
self should: ['-.-.' asNumber = nil] raise: Error.
self should: ['-..-' asNumber = nil] raise: Error.
self should: ['-..-' asNumber = nil] raise: Error.
self should: ['-.-.' asNumber = nil] raise: Error.
self should: ['--..' asNumber = nil] raise: Error.
self should: ['--..' asNumber = nil] raise: Error.
self should: ['-.-.' asNumber = nil] raise: Error.
self should: ['-..-' asNumber = nil] raise: Error.
self should: ['-..-' asNumber = nil] raise: Error.
self should: ['-.-.' asNumber = nil] raise: Error.
self should: ['.--.' asNumber = nil] raise: Error.
self should: ['.-.-' asNumber = nil] raise: Error.
self should: ['.--.' asNumber = nil] raise: Error.
self should: ['.-.-' asNumber = nil] raise: Error.
self should: ['..--' asNumber = nil] raise: Error.
self should: ['..--' asNumber = nil] raise: Error.
self should: ['.-.-' asNumber = nil] raise: Error.
self should: ['.--.' asNumber = nil] raise: Error.
self should: ['..--' asNumber = nil] raise: Error.
self should: ['..--' asNumber = nil] raise: Error.
self should: ['.-.-' asNumber = nil] raise: Error.
self should: ['.--.' asNumber = nil] raise: Error.
self should: ['--..1' asNumber = nil] raise: Error.
self should: ['--.1.' asNumber = nil] raise: Error.
self should: ['--..1' asNumber = nil] raise: Error.
self should: ['--.1.' asNumber = nil] raise: Error.
self should: ['--1..' asNumber = nil] raise: Error.
self should: ['--1..' asNumber = nil] raise: Error.
self should: ['-.-.1' asNumber = nil] raise: Error.
self should: ['-.-1.' asNumber = nil] raise: Error.
self should: ['-..-1' asNumber = nil] raise: Error.
self should: ['-..1-' asNumber = nil] raise: Error.
self should: ['-.1.-' asNumber = nil] raise: Error.
self should: ['-.1-.' asNumber = nil] raise: Error.
self should: ['-..-1' asNumber = nil] raise: Error.
self should: ['-..1-' asNumber = nil] raise: Error.
self should: ['-.-.1' asNumber = nil] raise: Error.
self should: ['-.-1.' asNumber = nil] raise: Error.
self should: ['-.1-.' asNumber = nil] raise: Error.
self should: ['-.1.-' asNumber = nil] raise: Error.
self should: ['-1..-' asNumber = -1].
self should: ['-1.-.' asNumber = -1].
self should: ['-1..-' asNumber = -1].
self should: ['-1.-.' asNumber = -1].
self should: ['-1-..' asNumber = -1].
self should: ['-1-..' asNumber = -1].
self should: ['--..1' asNumber = nil] raise: Error.
self should: ['--.1.' asNumber = nil] raise: Error.
self should: ['--..1' asNumber = nil] raise: Error.
self should: ['--.1.' asNumber = nil] raise: Error.
self should: ['--1..' asNumber = nil] raise: Error.
self should: ['--1..' asNumber = nil] raise: Error.
self should: ['-.-.1' asNumber = nil] raise: Error.
self should: ['-.-1.' asNumber = nil] raise: Error.
self should: ['-..-1' asNumber = nil] raise: Error.
self should: ['-..1-' asNumber = nil] raise: Error.
self should: ['-.1.-' asNumber = nil] raise: Error.
self should: ['-.1-.' asNumber = nil] raise: Error.
self should: ['-..-1' asNumber = nil] raise: Error.
self should: ['-..1-' asNumber = nil] raise: Error.
self should: ['-.-.1' asNumber = nil] raise: Error.
self should: ['-.-1.' asNumber = nil] raise: Error.
self should: ['-.1-.' asNumber = nil] raise: Error.
self should: ['-.1.-' asNumber = nil] raise: Error.
self should: ['-1..-' asNumber = -1].
self should: ['-1.-.' asNumber = -1].
self should: ['-1..-' asNumber = -1].
self should: ['-1.-.' asNumber = -1].
self should: ['-1-..' asNumber = -1].
self should: ['-1-..' asNumber = -1].
self should: ['.--.1' asNumber = nil] raise: Error.
self should: ['.--1.' asNumber = nil] raise: Error.
self should: ['.-.-1' asNumber = nil] raise: Error.
self should: ['.-.1-' asNumber = nil] raise: Error.
self should: ['.-1.-' asNumber = nil] raise: Error.
self should: ['.-1-.' asNumber = nil] raise: Error.
self should: ['.--.1' asNumber = nil] raise: Error.
self should: ['.--1.' asNumber = nil] raise: Error.
self should: ['.-.-1' asNumber = nil] raise: Error.
self should: ['.-.1-' asNumber = nil] raise: Error.
self should: ['.-1.-' asNumber = nil] raise: Error.
self should: ['.-1-.' asNumber = nil] raise: Error.
self should: ['..--1' asNumber = nil] raise: Error.
self should: ['..-1-' asNumber = nil] raise: Error.
self should: ['..--1' asNumber = nil] raise: Error.
self should: ['..-1-' asNumber = nil] raise: Error.
self should: ['..1--' asNumber = nil] raise: Error.
self should: ['..1--' asNumber = nil] raise: Error.
self should: ['.1-.-' asNumber = nil] raise: Error.
self should: ['.1--.' asNumber = nil] raise: Error.
self should: ['.1.--' asNumber = nil] raise: Error.
self should: ['.1.--' asNumber = nil] raise: Error.
self should: ['.1-.-' asNumber = nil] raise: Error.
self should: ['.1--.' asNumber = nil] raise: Error.
self should: ['.-.-1' asNumber = nil] raise: Error.
self should: ['.-.1-' asNumber = nil] raise: Error.
self should: ['.--.1' asNumber = nil] raise: Error.
self should: ['.--1.' asNumber = nil] raise: Error.
self should: ['.-1-.' asNumber = nil] raise: Error.
self should: ['.-1.-' asNumber = nil] raise: Error.
self should: ['..--1' asNumber = nil] raise: Error.
self should: ['..-1-' asNumber = nil] raise: Error.
self should: ['..--1' asNumber = nil] raise: Error.
self should: ['..-1-' asNumber = nil] raise: Error.
self should: ['..1--' asNumber = nil] raise: Error.
self should: ['..1--' asNumber = nil] raise: Error.
self should: ['.-.-1' asNumber = nil] raise: Error.
self should: ['.-.1-' asNumber = nil] raise: Error.
self should: ['.--.1' asNumber = nil] raise: Error.
self should: ['.--1.' asNumber = nil] raise: Error.
self should: ['.-1-.' asNumber = nil] raise: Error.
self should: ['.-1.-' asNumber = nil] raise: Error.
self should: ['.1.--' asNumber = nil] raise: Error.
self should: ['.1.--' asNumber = nil] raise: Error.
self should: ['.1-.-' asNumber = nil] raise: Error.
self should: ['.1--.' asNumber = nil] raise: Error.
self should: ['.1--.' asNumber = nil] raise: Error.
self should: ['.1-.-' asNumber = nil] raise: Error.
self should: ['1-..-' asNumber = 1].
self should: ['1-.-.' asNumber = 1].
self should: ['1-..-' asNumber = 1].
self should: ['1-.-.' asNumber = 1].
self should: ['1--..' asNumber = 1].
self should: ['1--..' asNumber = 1].
self should: ['1.-.-' asNumber = 1].
self should: ['1.--.' asNumber = 1].
self should: ['1..--' asNumber = 1].
self should: ['1..--' asNumber = 1].
self should: ['1.-.-' asNumber = 1].
self should: ['1.--.' asNumber = 1].
self should: ['1..--' asNumber = 1].
self should: ['1..--' asNumber = 1].
self should: ['1.-.-' asNumber = 1].
self should: ['1.--.' asNumber = 1].
self should: ['1.--.' asNumber = 1].
self should: ['1.-.-' asNumber = 1].
self should: ['1-..-' asNumber = 1].
self should: ['1-.-.' asNumber = 1].
self should: ['1-..-' asNumber = 1].
self should: ['1-.-.' asNumber = 1].
self should: ['1--..' asNumber = 1].
self should: ['1--..' asNumber = 1].


SqNumberParserTest >>testcheckForCoverage3

self should: ['--..12' asNumber = nil] raise: Error.
self should: ['--..21' asNumber = nil] raise: Error.
self should: ['--.1.2' asNumber = nil] raise: Error.
self should: ['--.12.' asNumber = nil] raise: Error.
self should: ['--.21.' asNumber = nil] raise: Error.
self should: ['--.2.1' asNumber = nil] raise: Error.
self should: ['--..12' asNumber = nil] raise: Error.
self should: ['--..21' asNumber = nil] raise: Error.
self should: ['--.1.2' asNumber = nil] raise: Error.
self should: ['--.12.' asNumber = nil] raise: Error.
self should: ['--.21.' asNumber = nil] raise: Error.
self should: ['--.2.1' asNumber = nil] raise: Error.
self should: ['--1..2' asNumber = nil] raise: Error.
self should: ['--1.2.' asNumber = nil] raise: Error.
self should: ['--1..2' asNumber = nil] raise: Error.
self should: ['--1.2.' asNumber = nil] raise: Error.
self should: ['--12..' asNumber = nil] raise: Error.
self should: ['--12..' asNumber = nil] raise: Error.
self should: ['--2.1.' asNumber = nil] raise: Error.
self should: ['--2..1' asNumber = nil] raise: Error.
self should: ['--21..' asNumber = nil] raise: Error.
self should: ['--21..' asNumber = nil] raise: Error.
self should: ['--2.1.' asNumber = nil] raise: Error.
self should: ['--2..1' asNumber = nil] raise: Error.
self should: ['-.-.12' asNumber = nil] raise: Error.
self should: ['-.-.21' asNumber = nil] raise: Error.
self should: ['-.-1.2' asNumber = nil] raise: Error.
self should: ['-.-12.' asNumber = nil] raise: Error.
self should: ['-.-21.' asNumber = nil] raise: Error.
self should: ['-.-2.1' asNumber = nil] raise: Error.
self should: ['-..-12' asNumber = nil] raise: Error.
self should: ['-..-21' asNumber = nil] raise: Error.
self should: ['-..1-2' asNumber = nil] raise: Error.
self should: ['-..12-' asNumber = nil] raise: Error.
self should: ['-..21-' asNumber = nil] raise: Error.
self should: ['-..2-1' asNumber = nil] raise: Error.
self should: ['-.1.-2' asNumber = nil] raise: Error.
self should: ['-.1.2-' asNumber = nil] raise: Error.
self should: ['-.1-.2' asNumber = nil] raise: Error.
self should: ['-.1-2.' asNumber = nil] raise: Error.
self should: ['-.12-.' asNumber = nil] raise: Error.
self should: ['-.12.-' asNumber = nil] raise: Error.
self should: ['-.2.1-' asNumber = nil] raise: Error.
self should: ['-.2.-1' asNumber = nil] raise: Error.
self should: ['-.21.-' asNumber = nil] raise: Error.
self should: ['-.21-.' asNumber = nil] raise: Error.
self should: ['-.2-1.' asNumber = nil] raise: Error.
self should: ['-.2-.1' asNumber = nil] raise: Error.
self should: ['-..-12' asNumber = nil] raise: Error.
self should: ['-..-21' asNumber = nil] raise: Error.
self should: ['-..1-2' asNumber = nil] raise: Error.
self should: ['-..12-' asNumber = nil] raise: Error.
self should: ['-..21-' asNumber = nil] raise: Error.
self should: ['-..2-1' asNumber = nil] raise: Error.
self should: ['-.-.12' asNumber = nil] raise: Error.
self should: ['-.-.21' asNumber = nil] raise: Error.
self should: ['-.-1.2' asNumber = nil] raise: Error.
self should: ['-.-12.' asNumber = nil] raise: Error.
self should: ['-.-21.' asNumber = nil] raise: Error.
self should: ['-.-2.1' asNumber = nil] raise: Error.
self should: ['-.1-.2' asNumber = nil] raise: Error.
self should: ['-.1-2.' asNumber = nil] raise: Error.
self should: ['-.1.-2' asNumber = nil] raise: Error.
self should: ['-.1.2-' asNumber = nil] raise: Error.
self should: ['-.12.-' asNumber = nil] raise: Error.
self should: ['-.12-.' asNumber = nil] raise: Error.
self should: ['-.2-1.' asNumber = nil] raise: Error.
self should: ['-.2-.1' asNumber = nil] raise: Error.
self should: ['-.21-.' asNumber = nil] raise: Error.
self should: ['-.21.-' asNumber = nil] raise: Error.
self should: ['-.2.1-' asNumber = nil] raise: Error.
self should: ['-.2.-1' asNumber = nil] raise: Error.
self should: ['-1..-2' asNumber = -1].
self should: ['-1..2-' asNumber = -1].
self should: ['-1.-.2' asNumber = -1].
self should: ['-1.-2.' asNumber = -1].
self should: ['-1.2-.' asNumber = -1.2].
self should: ['-1.2.-' asNumber = -1.2].
self should: ['-1..-2' asNumber = -1].
self should: ['-1..2-' asNumber = -1].
self should: ['-1.-.2' asNumber = -1].
self should: ['-1.-2.' asNumber = -1].
self should: ['-1.2-.' asNumber = -1.2].
self should: ['-1.2.-' asNumber = -1.2].
self should: ['-1-..2' asNumber = -1].
self should: ['-1-.2.' asNumber = -1].
self should: ['-1-..2' asNumber = -1].
self should: ['-1-.2.' asNumber = -1].
self should: ['-1-2..' asNumber = -1].
self should: ['-1-2..' asNumber = -1].
self should: ['-12.-.' asNumber = -12].
self should: ['-12..-' asNumber = -12].
self should: ['-12-..' asNumber = -12].
self should: ['-12-..' asNumber = -12].
self should: ['-12.-.' asNumber = -12].
self should: ['-12..-' asNumber = -12].
self should: ['-2..1-' asNumber = -2].
self should: ['-2..-1' asNumber = -2].
self should: ['-2.1.-' asNumber = -2.1].
self should: ['-2.1-.' asNumber = -2.1].
self should: ['-2.-1.' asNumber = -2].
self should: ['-2.-.1' asNumber = -2].
self should: ['-2..1-' asNumber = -2].
self should: ['-2..-1' asNumber = -2].
self should: ['-2.1.-' asNumber = -2.1].
self should: ['-2.1-.' asNumber = -2.1].
self should: ['-2.-1.' asNumber = -2].
self should: ['-2.-.1' asNumber = -2].
self should: ['-21..-' asNumber = -21].
self should: ['-21.-.' asNumber = -21].
self should: ['-21..-' asNumber = -21].
self should: ['-21.-.' asNumber = -21].
self should: ['-21-..' asNumber = -21].
self should: ['-21-..' asNumber = -21].
self should: ['-2-.1.' asNumber = -2].
self should: ['-2-..1' asNumber = -2].
self should: ['-2-1..' asNumber = -2].
self should: ['-2-1..' asNumber = -2].
self should: ['-2-.1.' asNumber = -2].
self should: ['-2-..1' asNumber = -2].
self should: ['--..12' asNumber = nil] raise: Error.
self should: ['--..21' asNumber = nil] raise: Error.
self should: ['--.1.2' asNumber = nil] raise: Error.
self should: ['--.12.' asNumber = nil] raise: Error.
self should: ['--.21.' asNumber = nil] raise: Error.
self should: ['--.2.1' asNumber = nil] raise: Error.
self should: ['--..12' asNumber = nil] raise: Error.
self should: ['--..21' asNumber = nil] raise: Error.
self should: ['--.1.2' asNumber = nil] raise: Error.
self should: ['--.12.' asNumber = nil] raise: Error.
self should: ['--.21.' asNumber = nil] raise: Error.
self should: ['--.2.1' asNumber = nil] raise: Error.
self should: ['--1..2' asNumber = nil] raise: Error.
self should: ['--1.2.' asNumber = nil] raise: Error.
self should: ['--1..2' asNumber = nil] raise: Error.
self should: ['--1.2.' asNumber = nil] raise: Error.
self should: ['--12..' asNumber = nil] raise: Error.
self should: ['--12..' asNumber = nil] raise: Error.
self should: ['--2.1.' asNumber = nil] raise: Error.
self should: ['--2..1' asNumber = nil] raise: Error.
self should: ['--21..' asNumber = nil] raise: Error.
self should: ['--21..' asNumber = nil] raise: Error.
self should: ['--2.1.' asNumber = nil] raise: Error.
self should: ['--2..1' asNumber = nil] raise: Error.
self should: ['-.-.12' asNumber = nil] raise: Error.
self should: ['-.-.21' asNumber = nil] raise: Error.
self should: ['-.-1.2' asNumber = nil] raise: Error.
self should: ['-.-12.' asNumber = nil] raise: Error.
self should: ['-.-21.' asNumber = nil] raise: Error.
self should: ['-.-2.1' asNumber = nil] raise: Error.
self should: ['-..-12' asNumber = nil] raise: Error.
self should: ['-..-21' asNumber = nil] raise: Error.
self should: ['-..1-2' asNumber = nil] raise: Error.
self should: ['-..12-' asNumber = nil] raise: Error.
self should: ['-..21-' asNumber = nil] raise: Error.
self should: ['-..2-1' asNumber = nil] raise: Error.
self should: ['-.1.-2' asNumber = nil] raise: Error.
self should: ['-.1.2-' asNumber = nil] raise: Error.
self should: ['-.1-.2' asNumber = nil] raise: Error.
self should: ['-.1-2.' asNumber = nil] raise: Error.
self should: ['-.12-.' asNumber = nil] raise: Error.
self should: ['-.12.-' asNumber = nil] raise: Error.
self should: ['-.2.1-' asNumber = nil] raise: Error.
self should: ['-.2.-1' asNumber = nil] raise: Error.
self should: ['-.21.-' asNumber = nil] raise: Error.
self should: ['-.21-.' asNumber = nil] raise: Error.
self should: ['-.2-1.' asNumber = nil] raise: Error.
self should: ['-.2-.1' asNumber = nil] raise: Error.
self should: ['-..-12' asNumber = nil] raise: Error.
self should: ['-..-21' asNumber = nil] raise: Error.
self should: ['-..1-2' asNumber = nil] raise: Error.
self should: ['-..12-' asNumber = nil] raise: Error.
self should: ['-..21-' asNumber = nil] raise: Error.
self should: ['-..2-1' asNumber = nil] raise: Error.
self should: ['-.-.12' asNumber = nil] raise: Error.
self should: ['-.-.21' asNumber = nil] raise: Error.
self should: ['-.-1.2' asNumber = nil] raise: Error.
self should: ['-.-12.' asNumber = nil] raise: Error.
self should: ['-.-21.' asNumber = nil] raise: Error.
self should: ['-.-2.1' asNumber = nil] raise: Error.
self should: ['-.1-.2' asNumber = nil] raise: Error.
self should: ['-.1-2.' asNumber = nil] raise: Error.
self should: ['-.1.-2' asNumber = nil] raise: Error.
self should: ['-.1.2-' asNumber = nil] raise: Error.
self should: ['-.12.-' asNumber = nil] raise: Error.
self should: ['-.12-.' asNumber = nil] raise: Error.
self should: ['-.2-1.' asNumber = nil] raise: Error.
self should: ['-.2-.1' asNumber = nil] raise: Error.
self should: ['-.21-.' asNumber = nil] raise: Error.
self should: ['-.21.-' asNumber = nil] raise: Error.
self should: ['-.2.1-' asNumber = nil] raise: Error.
self should: ['-.2.-1' asNumber = nil] raise: Error.
self should: ['-1..-2' asNumber = -1].
self should: ['-1..2-' asNumber = -1].
self should: ['-1.-.2' asNumber = -1].
self should: ['-1.-2.' asNumber = -1].
self should: ['-1.2-.' asNumber = -1.2].
self should: ['-1.2.-' asNumber = -1.2].
self should: ['-1..-2' asNumber = -1].
self should: ['-1..2-' asNumber = -1].
self should: ['-1.-.2' asNumber = -1].
self should: ['-1.-2.' asNumber = -1].
self should: ['-1.2-.' asNumber = -1.2].
self should: ['-1.2.-' asNumber = -1.2].
self should: ['-1-..2' asNumber = -1].
self should: ['-1-.2.' asNumber = -1].
self should: ['-1-..2' asNumber = -1].
self should: ['-1-.2.' asNumber = -1].
self should: ['-1-2..' asNumber = -1].
self should: ['-1-2..' asNumber = -1].
self should: ['-12.-.' asNumber = -12].
self should: ['-12..-' asNumber = -12].
self should: ['-12-..' asNumber = -12].
self should: ['-12-..' asNumber = -12].
self should: ['-12.-.' asNumber = -12].
self should: ['-12..-' asNumber = -12].
self should: ['-2..1-' asNumber = -2].
self should: ['-2..-1' asNumber = -2].
self should: ['-2.1.-' asNumber = -2.1].
self should: ['-2.1-.' asNumber = -2.1].
self should: ['-2.-1.' asNumber = -2].
self should: ['-2.-.1' asNumber = -2].
self should: ['-2..1-' asNumber = -2].
self should: ['-2..-1' asNumber = -2].
self should: ['-2.1.-' asNumber = -2.1].
self should: ['-2.1-.' asNumber = -2.1].
self should: ['-2.-1.' asNumber = -2].
self should: ['-2.-.1' asNumber = -2].
self should: ['-21..-' asNumber = -21].
self should: ['-21.-.' asNumber = -21].
self should: ['-21..-' asNumber = -21].
self should: ['-21.-.' asNumber = -21].
self should: ['-21-..' asNumber = -21].
self should: ['-21-..' asNumber = -21].
self should: ['-2-.1.' asNumber = -2].
self should: ['-2-..1' asNumber = -2].
self should: ['-2-1..' asNumber = -2].
self should: ['-2-1..' asNumber = -2].
self should: ['-2-.1.' asNumber = -2].
self should: ['-2-..1' asNumber = -2].
self should: ['.--.12' asNumber = nil] raise: Error.
self should: ['.--.21' asNumber = nil] raise: Error.
self should: ['.--1.2' asNumber = nil] raise: Error.
self should: ['.--12.' asNumber = nil] raise: Error.
self should: ['.--21.' asNumber = nil] raise: Error.
self should: ['.--2.1' asNumber = nil] raise: Error.
self should: ['.-.-12' asNumber = nil] raise: Error.
self should: ['.-.-21' asNumber = nil] raise: Error.
self should: ['.-.1-2' asNumber = nil] raise: Error.
self should: ['.-.12-' asNumber = nil] raise: Error.
self should: ['.-.21-' asNumber = nil] raise: Error.
self should: ['.-.2-1' asNumber = nil] raise: Error.
self should: ['.-1.-2' asNumber = nil] raise: Error.
self should: ['.-1.2-' asNumber = nil] raise: Error.
self should: ['.-1-.2' asNumber = nil] raise: Error.
self should: ['.-1-2.' asNumber = nil] raise: Error.
self should: ['.-12-.' asNumber = nil] raise: Error.
self should: ['.-12.-' asNumber = nil] raise: Error.
self should: ['.-2.1-' asNumber = nil] raise: Error.
self should: ['.-2.-1' asNumber = nil] raise: Error.
self should: ['.-21.-' asNumber = nil] raise: Error.
self should: ['.-21-.' asNumber = nil] raise: Error.
self should: ['.-2-1.' asNumber = nil] raise: Error.
self should: ['.-2-.1' asNumber = nil] raise: Error.
self should: ['.--.12' asNumber = nil] raise: Error.
self should: ['.--.21' asNumber = nil] raise: Error.
self should: ['.--1.2' asNumber = nil] raise: Error.
self should: ['.--12.' asNumber = nil] raise: Error.
self should: ['.--21.' asNumber = nil] raise: Error.
self should: ['.--2.1' asNumber = nil] raise: Error.
self should: ['.-.-12' asNumber = nil] raise: Error.
self should: ['.-.-21' asNumber = nil] raise: Error.
self should: ['.-.1-2' asNumber = nil] raise: Error.
self should: ['.-.12-' asNumber = nil] raise: Error.
self should: ['.-.21-' asNumber = nil] raise: Error.
self should: ['.-.2-1' asNumber = nil] raise: Error.
self should: ['.-1.-2' asNumber = nil] raise: Error.
self should: ['.-1.2-' asNumber = nil] raise: Error.
self should: ['.-1-.2' asNumber = nil] raise: Error.
self should: ['.-1-2.' asNumber = nil] raise: Error.
self should: ['.-12-.' asNumber = nil] raise: Error.
self should: ['.-12.-' asNumber = nil] raise: Error.
self should: ['.-2.1-' asNumber = nil] raise: Error.
self should: ['.-2.-1' asNumber = nil] raise: Error.
self should: ['.-21.-' asNumber = nil] raise: Error.
self should: ['.-21-.' asNumber = nil] raise: Error.
self should: ['.-2-1.' asNumber = nil] raise: Error.
self should: ['.-2-.1' asNumber = nil] raise: Error.
self should: ['..--12' asNumber = nil] raise: Error.
self should: ['..--21' asNumber = nil] raise: Error.
self should: ['..-1-2' asNumber = nil] raise: Error.
self should: ['..-12-' asNumber = nil] raise: Error.
self should: ['..-21-' asNumber = nil] raise: Error.
self should: ['..-2-1' asNumber = nil] raise: Error.
self should: ['..--12' asNumber = nil] raise: Error.
self should: ['..--21' asNumber = nil] raise: Error.
self should: ['..-1-2' asNumber = nil] raise: Error.
self should: ['..-12-' asNumber = nil] raise: Error.
self should: ['..-21-' asNumber = nil] raise: Error.
self should: ['..-2-1' asNumber = nil] raise: Error.
self should: ['..1--2' asNumber = nil] raise: Error.
self should: ['..1-2-' asNumber = nil] raise: Error.
self should: ['..1--2' asNumber = nil] raise: Error.
self should: ['..1-2-' asNumber = nil] raise: Error.
self should: ['..12--' asNumber = nil] raise: Error.
self should: ['..12--' asNumber = nil] raise: Error.
self should: ['..2-1-' asNumber = nil] raise: Error.
self should: ['..2--1' asNumber = nil] raise: Error.
self should: ['..21--' asNumber = nil] raise: Error.
self should: ['..21--' asNumber = nil] raise: Error.
self should: ['..2-1-' asNumber = nil] raise: Error.
self should: ['..2--1' asNumber = nil] raise: Error.
self should: ['.1-.-2' asNumber = nil] raise: Error.
self should: ['.1-.2-' asNumber = nil] raise: Error.
self should: ['.1--.2' asNumber = nil] raise: Error.
self should: ['.1--2.' asNumber = nil] raise: Error.
self should: ['.1-2-.' asNumber = nil] raise: Error.
self should: ['.1-2.-' asNumber = nil] raise: Error.
self should: ['.1.--2' asNumber = nil] raise: Error.
self should: ['.1.-2-' asNumber = nil] raise: Error.
self should: ['.1.--2' asNumber = nil] raise: Error.
self should: ['.1.-2-' asNumber = nil] raise: Error.
self should: ['.1.2--' asNumber = nil] raise: Error.
self should: ['.1.2--' asNumber = nil] raise: Error.
self should: ['.1-.-2' asNumber = nil] raise: Error.
self should: ['.1-.2-' asNumber = nil] raise: Error.
self should: ['.1--.2' asNumber = nil] raise: Error.
self should: ['.1--2.' asNumber = nil] raise: Error.
self should: ['.1-2-.' asNumber = nil] raise: Error.
self should: ['.1-2.-' asNumber = nil] raise: Error.
self should: ['.12.--' asNumber = nil] raise: Error.
self should: ['.12.--' asNumber = nil] raise: Error.
self should: ['.12-.-' asNumber = nil] raise: Error.
self should: ['.12--.' asNumber = nil] raise: Error.
self should: ['.12--.' asNumber = nil] raise: Error.
self should: ['.12-.-' asNumber = nil] raise: Error.
self should: ['.2-.1-' asNumber = nil] raise: Error.
self should: ['.2-.-1' asNumber = nil] raise: Error.
self should: ['.2-1.-' asNumber = nil] raise: Error.
self should: ['.2-1-.' asNumber = nil] raise: Error.
self should: ['.2--1.' asNumber = nil] raise: Error.
self should: ['.2--.1' asNumber = nil] raise: Error.
self should: ['.2.-1-' asNumber = nil] raise: Error.
self should: ['.2.--1' asNumber = nil] raise: Error.
self should: ['.2.1--' asNumber = nil] raise: Error.
self should: ['.2.1--' asNumber = nil] raise: Error.
self should: ['.2.-1-' asNumber = nil] raise: Error.
self should: ['.2.--1' asNumber = nil] raise: Error.
self should: ['.21.--' asNumber = nil] raise: Error.
self should: ['.21.--' asNumber = nil] raise: Error.
self should: ['.21-.-' asNumber = nil] raise: Error.
self should: ['.21--.' asNumber = nil] raise: Error.
self should: ['.21--.' asNumber = nil] raise: Error.
self should: ['.21-.-' asNumber = nil] raise: Error.
self should: ['.2-.1-' asNumber = nil] raise: Error.
self should: ['.2-.-1' asNumber = nil] raise: Error.
self should: ['.2-1.-' asNumber = nil] raise: Error.
self should: ['.2-1-.' asNumber = nil] raise: Error.
self should: ['.2--1.' asNumber = nil] raise: Error.
self should: ['.2--.1' asNumber = nil] raise: Error.
self should: ['.-.-12' asNumber = nil] raise: Error.
self should: ['.-.-21' asNumber = nil] raise: Error.
self should: ['.-.1-2' asNumber = nil] raise: Error.
self should: ['.-.12-' asNumber = nil] raise: Error.
self should: ['.-.21-' asNumber = nil] raise: Error.
self should: ['.-.2-1' asNumber = nil] raise: Error.
self should: ['.--.12' asNumber = nil] raise: Error.
self should: ['.--.21' asNumber = nil] raise: Error.
self should: ['.--1.2' asNumber = nil] raise: Error.
self should: ['.--12.' asNumber = nil] raise: Error.
self should: ['.--21.' asNumber = nil] raise: Error.
self should: ['.--2.1' asNumber = nil] raise: Error.
self should: ['.-1-.2' asNumber = nil] raise: Error.
self should: ['.-1-2.' asNumber = nil] raise: Error.
self should: ['.-1.-2' asNumber = nil] raise: Error.
self should: ['.-1.2-' asNumber = nil] raise: Error.
self should: ['.-12.-' asNumber = nil] raise: Error.
self should: ['.-12-.' asNumber = nil] raise: Error.
self should: ['.-2-1.' asNumber = nil] raise: Error.
self should: ['.-2-.1' asNumber = nil] raise: Error.
self should: ['.-21-.' asNumber = nil] raise: Error.
self should: ['.-21.-' asNumber = nil] raise: Error.
self should: ['.-2.1-' asNumber = nil] raise: Error.
self should: ['.-2.-1' asNumber = nil] raise: Error.
self should: ['..--12' asNumber = nil] raise: Error.
self should: ['..--21' asNumber = nil] raise: Error.
self should: ['..-1-2' asNumber = nil] raise: Error.
self should: ['..-12-' asNumber = nil] raise: Error.
self should: ['..-21-' asNumber = nil] raise: Error.
self should: ['..-2-1' asNumber = nil] raise: Error.
self should: ['..--12' asNumber = nil] raise: Error.
self should: ['..--21' asNumber = nil] raise: Error.
self should: ['..-1-2' asNumber = nil] raise: Error.
self should: ['..-12-' asNumber = nil] raise: Error.
self should: ['..-21-' asNumber = nil] raise: Error.
self should: ['..-2-1' asNumber = nil] raise: Error.
self should: ['..1--2' asNumber = nil] raise: Error.
self should: ['..1-2-' asNumber = nil] raise: Error.
self should: ['..1--2' asNumber = nil] raise: Error.
self should: ['..1-2-' asNumber = nil] raise: Error.
self should: ['..12--' asNumber = nil] raise: Error.
self should: ['..12--' asNumber = nil] raise: Error.
self should: ['..2-1-' asNumber = nil] raise: Error.
self should: ['..2--1' asNumber = nil] raise: Error.
self should: ['..21--' asNumber = nil] raise: Error.
self should: ['..21--' asNumber = nil] raise: Error.
self should: ['..2-1-' asNumber = nil] raise: Error.
self should: ['..2--1' asNumber = nil] raise: Error.
self should: ['.-.-12' asNumber = nil] raise: Error.
self should: ['.-.-21' asNumber = nil] raise: Error.
self should: ['.-.1-2' asNumber = nil] raise: Error.
self should: ['.-.12-' asNumber = nil] raise: Error.
self should: ['.-.21-' asNumber = nil] raise: Error.
self should: ['.-.2-1' asNumber = nil] raise: Error.
self should: ['.--.12' asNumber = nil] raise: Error.
self should: ['.--.21' asNumber = nil] raise: Error.
self should: ['.--1.2' asNumber = nil] raise: Error.
self should: ['.--12.' asNumber = nil] raise: Error.
self should: ['.--21.' asNumber = nil] raise: Error.
self should: ['.--2.1' asNumber = nil] raise: Error.
self should: ['.-1-.2' asNumber = nil] raise: Error.
self should: ['.-1-2.' asNumber = nil] raise: Error.
self should: ['.-1.-2' asNumber = nil] raise: Error.
self should: ['.-1.2-' asNumber = nil] raise: Error.
self should: ['.-12.-' asNumber = nil] raise: Error.
self should: ['.-12-.' asNumber = nil] raise: Error.
self should: ['.-2-1.' asNumber = nil] raise: Error.
self should: ['.-2-.1' asNumber = nil] raise: Error.
self should: ['.-21-.' asNumber = nil] raise: Error.
self should: ['.-21.-' asNumber = nil] raise: Error.
self should: ['.-2.1-' asNumber = nil] raise: Error.
self should: ['.-2.-1' asNumber = nil] raise: Error.
self should: ['.1.--2' asNumber = nil] raise: Error.
self should: ['.1.-2-' asNumber = nil] raise: Error.
self should: ['.1.--2' asNumber = nil] raise: Error.
self should: ['.1.-2-' asNumber = nil] raise: Error.
self should: ['.1.2--' asNumber = nil] raise: Error.
self should: ['.1.2--' asNumber = nil] raise: Error.
self should: ['.1-.-2' asNumber = nil] raise: Error.
self should: ['.1-.2-' asNumber = nil] raise: Error.
self should: ['.1--.2' asNumber = nil] raise: Error.
self should: ['.1--2.' asNumber = nil] raise: Error.
self should: ['.1-2-.' asNumber = nil] raise: Error.
self should: ['.1-2.-' asNumber = nil] raise: Error.
self should: ['.1--.2' asNumber = nil] raise: Error.
self should: ['.1--2.' asNumber = nil] raise: Error.
self should: ['.1-.-2' asNumber = nil] raise: Error.
self should: ['.1-.2-' asNumber = nil] raise: Error.
self should: ['.1-2.-' asNumber = nil] raise: Error.
self should: ['.1-2-.' asNumber = nil] raise: Error.
self should: ['.12--.' asNumber = nil] raise: Error.
self should: ['.12-.-' asNumber = nil] raise: Error.
self should: ['.12--.' asNumber = nil] raise: Error.
self should: ['.12-.-' asNumber = nil] raise: Error.
self should: ['.12.--' asNumber = nil] raise: Error.
self should: ['.12.--' asNumber = nil] raise: Error.
self should: ['.2.-1-' asNumber = nil] raise: Error.
self should: ['.2.--1' asNumber = nil] raise: Error.
self should: ['.2.1--' asNumber = nil] raise: Error.
self should: ['.2.1--' asNumber = nil] raise: Error.
self should: ['.2.-1-' asNumber = nil] raise: Error.
self should: ['.2.--1' asNumber = nil] raise: Error.
self should: ['.2-.1-' asNumber = nil] raise: Error.
self should: ['.2-.-1' asNumber = nil] raise: Error.
self should: ['.2-1.-' asNumber = nil] raise: Error.
self should: ['.2-1-.' asNumber = nil] raise: Error.
self should: ['.2--1.' asNumber = nil] raise: Error.
self should: ['.2--.1' asNumber = nil] raise: Error.
self should: ['.21-.-' asNumber = nil] raise: Error.
self should: ['.21--.' asNumber = nil] raise: Error.
self should: ['.21.--' asNumber = nil] raise: Error.
self should: ['.21.--' asNumber = nil] raise: Error.
self should: ['.21-.-' asNumber = nil] raise: Error.
self should: ['.21--.' asNumber = nil] raise: Error.
self should: ['.2--1.' asNumber = nil] raise: Error.
self should: ['.2--.1' asNumber = nil] raise: Error.
self should: ['.2-1-.' asNumber = nil] raise: Error.
self should: ['.2-1.-' asNumber = nil] raise: Error.
self should: ['.2-.1-' asNumber = nil] raise: Error.
self should: ['.2-.-1' asNumber = nil] raise: Error.
self should: ['1-..-2' asNumber = 1].
self should: ['1-..2-' asNumber = 1].
self should: ['1-.-.2' asNumber = 1].
self should: ['1-.-2.' asNumber = 1].
self should: ['1-.2-.' asNumber = 1].
self should: ['1-.2.-' asNumber = 1].
self should: ['1-..-2' asNumber = 1].
self should: ['1-..2-' asNumber = 1].
self should: ['1-.-.2' asNumber = 1].
self should: ['1-.-2.' asNumber = 1].
self should: ['1-.2-.' asNumber = 1].
self should: ['1-.2.-' asNumber = 1].
self should: ['1--..2' asNumber = 1].
self should: ['1--.2.' asNumber = 1].
self should: ['1--..2' asNumber = 1].
self should: ['1--.2.' asNumber = 1].
self should: ['1--2..' asNumber = 1].
self should: ['1--2..' asNumber = 1].
self should: ['1-2.-.' asNumber = 1].
self should: ['1-2..-' asNumber = 1].
self should: ['1-2-..' asNumber = 1].
self should: ['1-2-..' asNumber = 1].
self should: ['1-2.-.' asNumber = 1].
self should: ['1-2..-' asNumber = 1].
self should: ['1.-.-2' asNumber = 1].
self should: ['1.-.2-' asNumber = 1].
self should: ['1.--.2' asNumber = 1].
self should: ['1.--2.' asNumber = 1].
self should: ['1.-2-.' asNumber = 1].
self should: ['1.-2.-' asNumber = 1].
self should: ['1..--2' asNumber = 1].
self should: ['1..-2-' asNumber = 1].
self should: ['1..--2' asNumber = 1].
self should: ['1..-2-' asNumber = 1].
self should: ['1..2--' asNumber = 1].
self should: ['1..2--' asNumber = 1].
self should: ['1.-.-2' asNumber = 1].
self should: ['1.-.2-' asNumber = 1].
self should: ['1.--.2' asNumber = 1].
self should: ['1.--2.' asNumber = 1].
self should: ['1.-2-.' asNumber = 1].
self should: ['1.-2.-' asNumber = 1].
self should: ['1.2.--' asNumber = 1.2].
self should: ['1.2.--' asNumber = 1.2].
self should: ['1.2-.-' asNumber = 1.2].
self should: ['1.2--.' asNumber = 1.2].
self should: ['1.2--.' asNumber = 1.2].
self should: ['1.2-.-' asNumber = 1.2].
self should: ['1..--2' asNumber = 1].
self should: ['1..-2-' asNumber = 1].
self should: ['1..--2' asNumber = 1].
self should: ['1..-2-' asNumber = 1].
self should: ['1..2--' asNumber = 1].
self should: ['1..2--' asNumber = 1].
self should: ['1.-.-2' asNumber = 1].
self should: ['1.-.2-' asNumber = 1].
self should: ['1.--.2' asNumber = 1].
self should: ['1.--2.' asNumber = 1].
self should: ['1.-2-.' asNumber = 1].
self should: ['1.-2.-' asNumber = 1].
self should: ['1.--.2' asNumber = 1].
self should: ['1.--2.' asNumber = 1].
self should: ['1.-.-2' asNumber = 1].
self should: ['1.-.2-' asNumber = 1].
self should: ['1.-2.-' asNumber = 1].
self should: ['1.-2-.' asNumber = 1].
self should: ['1.2--.' asNumber = 1.2].
self should: ['1.2-.-' asNumber = 1.2].
self should: ['1.2--.' asNumber = 1.2].
self should: ['1.2-.-' asNumber = 1.2].
self should: ['1.2.--' asNumber = 1.2].
self should: ['1.2.--' asNumber = 1.2].
self should: ['1-..-2' asNumber = 1].
self should: ['1-..2-' asNumber = 1].
self should: ['1-.-.2' asNumber = 1].
self should: ['1-.-2.' asNumber = 1].
self should: ['1-.2-.' asNumber = 1].
self should: ['1-.2.-' asNumber = 1].
self should: ['1-..-2' asNumber = 1].
self should: ['1-..2-' asNumber = 1].
self should: ['1-.-.2' asNumber = 1].
self should: ['1-.-2.' asNumber = 1].
self should: ['1-.2-.' asNumber = 1].
self should: ['1-.2.-' asNumber = 1].
self should: ['1--..2' asNumber = 1].
self should: ['1--.2.' asNumber = 1].
self should: ['1--..2' asNumber = 1].
self should: ['1--.2.' asNumber = 1].
self should: ['1--2..' asNumber = 1].
self should: ['1--2..' asNumber = 1].
self should: ['1-2.-.' asNumber = 1].
self should: ['1-2..-' asNumber = 1].
self should: ['1-2-..' asNumber = 1].
self should: ['1-2-..' asNumber = 1].
self should: ['1-2.-.' asNumber = 1].
self should: ['1-2..-' asNumber = 1].
self should: ['12..--' asNumber = 12].
self should: ['12..--' asNumber = 12].
self should: ['12.-.-' asNumber = 12].
self should: ['12.--.' asNumber = 12].
self should: ['12.--.' asNumber = 12].
self should: ['12.-.-' asNumber = 12].
self should: ['12..--' asNumber = 12].
self should: ['12..--' asNumber = 12].
self should: ['12.-.-' asNumber = 12].
self should: ['12.--.' asNumber = 12].
self should: ['12.--.' asNumber = 12].
self should: ['12.-.-' asNumber = 12].
self should: ['12-..-' asNumber = 12].
self should: ['12-.-.' asNumber = 12].
self should: ['12-..-' asNumber = 12].
self should: ['12-.-.' asNumber = 12].
self should: ['12--..' asNumber = 12].
self should: ['12--..' asNumber = 12].
self should: ['12-.-.' asNumber = 12].
self should: ['12-..-' asNumber = 12].
self should: ['12--..' asNumber = 12].
self should: ['12--..' asNumber = 12].
self should: ['12-.-.' asNumber = 12].
self should: ['12-..-' asNumber = 12].
self should: ['2-..1-' asNumber = 2].
self should: ['2-..-1' asNumber = 2].
self should: ['2-.1.-' asNumber = 2].
self should: ['2-.1-.' asNumber = 2].
self should: ['2-.-1.' asNumber = 2].
self should: ['2-.-.1' asNumber = 2].
self should: ['2-..1-' asNumber = 2].
self should: ['2-..-1' asNumber = 2].
self should: ['2-.1.-' asNumber = 2].
self should: ['2-.1-.' asNumber = 2].
self should: ['2-.-1.' asNumber = 2].
self should: ['2-.-.1' asNumber = 2].
self should: ['2-1..-' asNumber = 2].
self should: ['2-1.-.' asNumber = 2].
self should: ['2-1..-' asNumber = 2].
self should: ['2-1.-.' asNumber = 2].
self should: ['2-1-..' asNumber = 2].
self should: ['2-1-..' asNumber = 2].
self should: ['2--.1.' asNumber = 2].
self should: ['2--..1' asNumber = 2].
self should: ['2--1..' asNumber = 2].
self should: ['2--1..' asNumber = 2].
self should: ['2--.1.' asNumber = 2].
self should: ['2--..1' asNumber = 2].
self should: ['2.-.1-' asNumber = 2].
self should: ['2.-.-1' asNumber = 2].
self should: ['2.-1.-' asNumber = 2].
self should: ['2.-1-.' asNumber = 2].
self should: ['2.--1.' asNumber = 2].
self should: ['2.--.1' asNumber = 2].
self should: ['2..-1-' asNumber = 2].
self should: ['2..--1' asNumber = 2].
self should: ['2..1--' asNumber = 2].
self should: ['2..1--' asNumber = 2].
self should: ['2..-1-' asNumber = 2].
self should: ['2..--1' asNumber = 2].
self should: ['2.1.--' asNumber = 2.1].
self should: ['2.1.--' asNumber = 2.1].
self should: ['2.1-.-' asNumber = 2.1].
self should: ['2.1--.' asNumber = 2.1].
self should: ['2.1--.' asNumber = 2.1].
self should: ['2.1-.-' asNumber = 2.1].
self should: ['2.-.1-' asNumber = 2].
self should: ['2.-.-1' asNumber = 2].
self should: ['2.-1.-' asNumber = 2].
self should: ['2.-1-.' asNumber = 2].
self should: ['2.--1.' asNumber = 2].
self should: ['2.--.1' asNumber = 2].
self should: ['2..-1-' asNumber = 2].
self should: ['2..--1' asNumber = 2].
self should: ['2..1--' asNumber = 2].
self should: ['2..1--' asNumber = 2].
self should: ['2..-1-' asNumber = 2].
self should: ['2..--1' asNumber = 2].
self should: ['2.-.1-' asNumber = 2].
self should: ['2.-.-1' asNumber = 2].
self should: ['2.-1.-' asNumber = 2].
self should: ['2.-1-.' asNumber = 2].
self should: ['2.--1.' asNumber = 2].
self should: ['2.--.1' asNumber = 2].
self should: ['2.1-.-' asNumber = 2.1].
self should: ['2.1--.' asNumber = 2.1].
self should: ['2.1.--' asNumber = 2.1].
self should: ['2.1.--' asNumber = 2.1].
self should: ['2.1-.-' asNumber = 2.1].
self should: ['2.1--.' asNumber = 2.1].
self should: ['2.--1.' asNumber = 2].
self should: ['2.--.1' asNumber = 2].
self should: ['2.-1-.' asNumber = 2].
self should: ['2.-1.-' asNumber = 2].
self should: ['2.-.1-' asNumber = 2].
self should: ['2.-.-1' asNumber = 2].
self should: ['21..--' asNumber = 21].
self should: ['21..--' asNumber = 21].
self should: ['21.-.-' asNumber = 21].
self should: ['21.--.' asNumber = 21].
self should: ['21.--.' asNumber = 21].
self should: ['21.-.-' asNumber = 21].
self should: ['21..--' asNumber = 21].
self should: ['21..--' asNumber = 21].
self should: ['21.-.-' asNumber = 21].
self should: ['21.--.' asNumber = 21].
self should: ['21.--.' asNumber = 21].
self should: ['21.-.-' asNumber = 21].
self should: ['21-..-' asNumber = 21].
self should: ['21-.-.' asNumber = 21].
self should: ['21-..-' asNumber = 21].
self should: ['21-.-.' asNumber = 21].
self should: ['21--..' asNumber = 21].
self should: ['21--..' asNumber = 21].
self should: ['21-.-.' asNumber = 21].
self should: ['21-..-' asNumber = 21].
self should: ['21--..' asNumber = 21].
self should: ['21--..' asNumber = 21].
self should: ['21-.-.' asNumber = 21].
self should: ['21-..-' asNumber = 21].
self should: ['2-..1-' asNumber = 2].
self should: ['2-..-1' asNumber = 2].
self should: ['2-.1.-' asNumber = 2].
self should: ['2-.1-.' asNumber = 2].
self should: ['2-.-1.' asNumber = 2].
self should: ['2-.-.1' asNumber = 2].
self should: ['2-..1-' asNumber = 2].
self should: ['2-..-1' asNumber = 2].
self should: ['2-.1.-' asNumber = 2].
self should: ['2-.1-.' asNumber = 2].
self should: ['2-.-1.' asNumber = 2].
self should: ['2-.-.1' asNumber = 2].
self should: ['2-1..-' asNumber = 2].
self should: ['2-1.-.' asNumber = 2].
self should: ['2-1..-' asNumber = 2].
self should: ['2-1.-.' asNumber = 2].
self should: ['2-1-..' asNumber = 2].
self should: ['2-1-..' asNumber = 2].
self should: ['2--.1.' asNumber = 2].
self should: ['2--..1' asNumber = 2].
self should: ['2--1..' asNumber = 2].
self should: ['2--1..' asNumber = 2].
self should: ['2--.1.' asNumber = 2].
self should: ['2--..1' asNumber = 2].

On 2009-09-24, at 2:47 PM, John M McIntosh wrote:

> Well yes I was *thinking* of using curl and asking wolfram alpha...

--
= 
= 
= 
========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com>   Twitter:   
squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
= 
= 
= 
========================================================================








More information about the Pharo-dev mailing list