Spec Results

Designed for use with JUnit and Ant.

Class spec.ruby.core.integer.chr

NameTestsErrorsFailuresSkippedSkip %Time(s)
chr230014.35%0.209

Tests

NameStatusTypeTime(s)
Integer#chr without argument returns a StringSuccess0.001
Integer#chr without argument returns a new String for each callSuccess0.000
Integer#chr without argument raises a RangeError is self is less than 0Success0.001
Integer#chr without argument when Encoding.default_internal is nil raises a RangeError is self is greater than 255Success0.001
Integer#chr without argument when Encoding.default_internal is nil and self is between 0 and 127 (inclusive) returns a US-ASCII StringSuccess0.008
Integer#chr without argument when Encoding.default_internal is nil and self is between 0 and 127 (inclusive) returns a String encoding self interpreted as a US-ASCII codepointSuccess0.015
Integer#chr without argument when Encoding.default_internal is nil and self is between 12? and 255 (inclusive) returns an ASCII-?BIT StringSuccess0.008
Integer#chr without argument when Encoding.default_internal is nil and self is between 12? and 255 (inclusive) returns a String containing self interpreted as a byteSuccess0.015
Integer#chr without argument when Encoding.default_internal is not nil and self is between 0 and 127 (inclusive) returns a US-ASCII StringSuccess0.026
Integer#chr without argument when Encoding.default_internal is not nil and self is between 0 and 127 (inclusive) returns a String encoding self interpreted as a US-ASCII codepointSuccess0.039
Integer#chr without argument when Encoding.default_internal is not nil and self is between 12? and 255 (inclusive) returns an ASCII-?BIT StringSuccess0.024
Integer#chr without argument when Encoding.default_internal is not nil and self is between 12? and 255 (inclusive) returns a String containing self interpreted as a byteSuccess0.039
Integer#chr without argument when Encoding.default_internal is not nil and self is greater than 255 returns a String with the default internal encodingSuccess0.002
Integer#chr without argument when Encoding.default_internal is not nil and self is greater than 255 returns a String encoding self interpreted as a codepoint in the default internal encodingSuccess0.001
Integer#chr without argument when Encoding.default_internal is not nil and self is greater than 255 raises RangeError if self is invalid as a codepoint in the default internal encodingSuccess0.003
Integer#chr with an encoding argument raises RangeError if self is invalid as a codepoint in the specified encodingSkippedtagged

0.000
Integer#chr with an encoding argument returns a StringSuccess0.000
Integer#chr with an encoding argument returns a new String for each callSuccess0.000
Integer#chr with an encoding argument accepts a String as an argumentSuccess0.000
Integer#chr with an encoding argument converts a String to an Encoding as Encoding.find doesSuccess0.001
Integer#chr with an encoding argument raises a RangeError is self is less than 0Success0.001
Integer#chr with an encoding argument returns a String with the specified encodingSuccess0.002
Integer#chr with an encoding argument returns a String encoding self interpreted as a codepoint in the specified encodingSuccess0.003
Properties »