()
| 80 | |
| 81 | |
| 82 | function TestToString() { |
| 83 | for (var i in symbols) { |
| 84 | assertThrows(function() {new String(symbols[i]) }, TypeError) |
| 85 | assertEquals(symbols[i].toString(), String(symbols[i])) |
| 86 | assertThrows(function() { symbols[i] + "" }, TypeError) |
| 87 | assertTrue(isValidSymbolString(symbols[i].toString())) |
| 88 | assertTrue(isValidSymbolString(Object(symbols[i]).toString())) |
| 89 | assertTrue(isValidSymbolString(Symbol.prototype.toString.call(symbols[i]))) |
| 90 | assertEquals( |
| 91 | "[object Symbol]", Object.prototype.toString.call(symbols[i])) |
| 92 | } |
| 93 | } |
| 94 | TestToString() |
| 95 | |
| 96 |
no test coverage detected