blob: 99fec6f3cfc38e1cc0fff2c9cdcedaed791e0dd7 [file] [log] [blame] [edit]
== Running test suite: StringUtilities
-- Running test case: String.format
PASS: float format specifier with no sub-specifier should show 6 decimal digits
PASS: float format specifier with precision 0 should show 0 decimal digits
PASS: float format specifier with precision 1 should show 1 decimal digit
PASS: float format specifier with precision 2 should show 2 decimal digits
PASS: float format specifier with precision 3 should show 3 decimal digits
PASS: float format specifier with precision 4 should show 4 decimal digits
PASS: float format specifier with precision 5 should show 5 decimal digits
PASS: float format specifier with precision 6 should show 6 decimal digits
PASS: float format specifier with precision 7 should show 7 decimal digits
PASS: float format specifier with precision 8 should show 8 decimal digits
PASS: float format specifier with precision 9 should show 9 decimal digits
PASS: float format specifier with string argument should attempt conversion to float
PASS: float format specifier with Infinity argument should show "∞"
PASS: float format specifier with NaN argument should show "NaN"
PASS: integer format specifier with float argument should convert to integer
PASS: integer format specifier with string argument should attempt conversion to integer
PASS: integer format specifier with Infinity argument should show "NaN"
PASS: integer format specifier with NaN argument should show "NaN"
Testing string with unknown specifier.
WARN: String.format("%_ %s", "first", "second"): Unsupported format specifier "%_" will be ignored.
PASS: Formatter string with unknown specifier should not replace unknown specifier.
PASS: Formatter string with unknown specifier should have an unused substitution value.
-- Running test case: String.prototype.extendedLocaleCompare
PASS: "1" < "2"
PASS: "2" > "1"
PASS: "2" < "10"
PASS: "10" > "2"
PASS: "1" < "10"
PASS: "10" > "1"
PASS: "a1" < "a2"
PASS: "a2" > "a1"
PASS: "a2" < "a10"
PASS: "a10" > "a2"
PASS: "a1" < "a10"
PASS: "a10" > "a1"
-- Running test case: String.prototype.get lineCount
PASS: A string with two line breaks should have three lines.
PASS: A string with two consecutive line breaks should have three lines.
PASS: A string with a traling line breaks should have two lines.
PASS: An empty string is one line.
-- Running test case: String.prototype.get lastLine
PASS: Last line of one line string is the same string.
PASS: Last line of a three line string should be the third line.
PASS: Last line of a string with a traling line break should be empty.
PASS: Last line of an empty string is the same empty string.
-- Running test case: String.prototype.truncateStart
PASS: String stays the same.
PASS: Ellipsis is inserted before the third character.
PASS: Ellipsis is inserted before the fourth character.
-- Running test case: String.prototype.truncateMiddle
PASS: String stays the same.
PASS: Ellipsis is inserted in the middle.
PASS: Ellipsis is inserted after the second character.
-- Running test case: String.prototype.truncateEnd
PASS: String stays the same.
PASS: Ellipsis is inserted after the fourth character.
PASS: Ellipsis is inserted after the third character.
-- Running test case: String.prototype.truncate
PASS: String stays the same.
PASS: String without whitespace is truncated at maxLength.
PASS: String is truncated at maxLength when no suitable word boundary.
PASS: String is truncated before last whitespace when past halfway point.
-- Running test case: String.prototype.collapseWhitespace
PASS: Multiple spaces are collapsed to one.
PASS: Multiple tabs are collapsed to one space.
PASS: Multiple newlines are collapsed to one space.
PASS: Mixed whitespace is collapsed to single spaces.
-- Running test case: String.prototype.removeWhitespace
PASS: Spaces are removed.
PASS: Tabs are removed.
PASS: Newlines are removed.
PASS: All whitespace is removed.
-- Running test case: String.prototype.capitalize
PASS: First character is capitalized.
PASS: Only first character is capitalized.
PASS: Already capitalized string stays the same.
PASS: Empty string stays empty.
-- Running test case: String.prototype.escapeCharacters
PASS: String stays the same with no escape characters.
PASS: String stays the same with empty escape characters.
PASS: String stays the same with no matching escape characters.
PASS: The letter 'c' is escaped.
PASS: The letter 'c' and 'e' are escaped.
PASS: The letter 'c' and 'e' are escaped.
PASS: The letter 'c', 'd', and 'e' are escaped.
-- Running test case: String.prototype.escapeForRegExp
PASS: String with no special characters stays the same.
PASS: Dot is escaped.
PASS: Asterisk is escaped.
PASS: Plus is escaped.
PASS: Question mark is escaped.
PASS: Square brackets are escaped.
PASS: Parentheses are escaped.
PASS: Pipe is escaped.
PASS: Caret and dollar are escaped.
PASS: Backslash is escaped.
-- Running test case: String.prototype.isLowerCase
PASS: String with single lowercase character should be lowercase.
PASS: String with multiple lowercase characters should be lowercase.
PASS: String with single uppercase character should not be lowercase.
PASS: String with mixed case characters should not be lowercase.
PASS: Empty string should not be lowercase.
PASS: String with non-alpha character should not be lowercase.
PASS: String with numeric character should not be lowercase.
-- Running test case: String.prototype.isUpperCase
PASS: String with single uppercase character should be uppercase.
PASS: String with multiple uppercase characters should be uppercase.
PASS: String with single lowercase character should not be uppercase.
PASS: String with mixed case characters should not be uppercase.
PASS: Empty string should not be uppercase.
PASS: String with non-alpha character should not be uppercase.
PASS: String with numeric character should not be uppercase.
-- Running test case: String.prototype.StrictModeReturnTypes
PASS: collapseWhitespace should return a primitive string.
PASS: removeWhitespace should return a primitive string.
PASS: escapeCharacters should return a primitive string.
PASS: escapeForRegExp should return a primitive string.
PASS: capitalize should return a primitive string.
PASS: insertWordBreakCharacters should return a primitive string.
PASS: removeWordBreakCharacters should return a primitive string.
PASS: truncateStart should return a primitive string.
PASS: truncateMiddle should return a primitive string.
PASS: truncateEnd should return a primitive string.
PASS: truncate should return a primitive string.
PASS: collapseWhitespace result should be strictly equal to primitive string.
PASS: removeWhitespace result should be strictly equal to primitive string.
PASS: capitalize result should be strictly equal to primitive string.
PASS: truncateStart result should be strictly equal to primitive string.
PASS: truncateMiddle result should be strictly equal to primitive string.
PASS: truncateEnd result should be strictly equal to primitive string.
PASS: truncate result should be strictly equal to primitive string.