fpizlo@apple.com | 0e6e154 | 2013-03-18 18:09:22 +0000 | [diff] [blame] | 1 | Tests what happens when you do ToString twice, and it has a side effect that clobbers the toString method in between the two ToStrings. |
| 2 | |
| 3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 | |
| 5 | |
| 6 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 7 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 8 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 9 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 10 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 11 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 12 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 13 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 14 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 15 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 16 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 17 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 18 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 19 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 20 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 21 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 22 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 23 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 24 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 25 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 26 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 27 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 28 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 29 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 30 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 31 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 32 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 33 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 34 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 35 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 36 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 37 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 38 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 39 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 40 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 41 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 42 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 43 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 44 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 45 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 46 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 47 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 48 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 49 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 50 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 51 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 52 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 53 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 54 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 55 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 56 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 57 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 58 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 59 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 60 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 61 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 62 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 63 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 64 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 65 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 66 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 67 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 68 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 69 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 70 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 71 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 72 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 73 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 74 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 75 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 76 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 77 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 78 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 79 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 80 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 81 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 82 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 83 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 84 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 85 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 86 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 87 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 88 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 89 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 90 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 91 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 92 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 93 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 94 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 95 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 96 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 97 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 98 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 99 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 100 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 101 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 102 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 103 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 104 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 105 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 106 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 107 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 108 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 109 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 110 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 111 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 112 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 113 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 114 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 115 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 116 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 117 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 118 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 119 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 120 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 121 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 122 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 123 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 124 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 125 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 126 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 127 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 128 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 129 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 130 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 131 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 132 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 133 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 134 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 135 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 136 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 137 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 138 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 139 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 140 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 141 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 142 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 143 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 144 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 145 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 146 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 147 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 148 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 149 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 150 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 151 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 152 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 153 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 154 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 155 | PASS foo(new String("hello"), sideEffect) is "hellohello" |
| 156 | hi! |
| 157 | PASS foo(new String("hello"), sideEffect) is "hello150" |
| 158 | hi! |
| 159 | PASS foo(new String("hello"), sideEffect) is "hello151" |
| 160 | hi! |
| 161 | PASS foo(new String("hello"), sideEffect) is "hello152" |
| 162 | hi! |
| 163 | PASS foo(new String("hello"), sideEffect) is "hello153" |
| 164 | hi! |
| 165 | PASS foo(new String("hello"), sideEffect) is "hello154" |
| 166 | hi! |
| 167 | PASS foo(new String("hello"), sideEffect) is "hello155" |
| 168 | hi! |
| 169 | PASS foo(new String("hello"), sideEffect) is "hello156" |
| 170 | hi! |
| 171 | PASS foo(new String("hello"), sideEffect) is "hello157" |
| 172 | hi! |
| 173 | PASS foo(new String("hello"), sideEffect) is "hello158" |
| 174 | hi! |
| 175 | PASS foo(new String("hello"), sideEffect) is "hello159" |
| 176 | hi! |
| 177 | PASS foo(new String("hello"), sideEffect) is "hello160" |
| 178 | hi! |
| 179 | PASS foo(new String("hello"), sideEffect) is "hello161" |
| 180 | hi! |
| 181 | PASS foo(new String("hello"), sideEffect) is "hello162" |
| 182 | hi! |
| 183 | PASS foo(new String("hello"), sideEffect) is "hello163" |
| 184 | hi! |
| 185 | PASS foo(new String("hello"), sideEffect) is "hello164" |
| 186 | hi! |
| 187 | PASS foo(new String("hello"), sideEffect) is "hello165" |
| 188 | hi! |
| 189 | PASS foo(new String("hello"), sideEffect) is "hello166" |
| 190 | hi! |
| 191 | PASS foo(new String("hello"), sideEffect) is "hello167" |
| 192 | hi! |
| 193 | PASS foo(new String("hello"), sideEffect) is "hello168" |
| 194 | hi! |
| 195 | PASS foo(new String("hello"), sideEffect) is "hello169" |
| 196 | hi! |
| 197 | PASS foo(new String("hello"), sideEffect) is "hello170" |
| 198 | hi! |
| 199 | PASS foo(new String("hello"), sideEffect) is "hello171" |
| 200 | hi! |
| 201 | PASS foo(new String("hello"), sideEffect) is "hello172" |
| 202 | hi! |
| 203 | PASS foo(new String("hello"), sideEffect) is "hello173" |
| 204 | hi! |
| 205 | PASS foo(new String("hello"), sideEffect) is "hello174" |
| 206 | hi! |
| 207 | PASS foo(new String("hello"), sideEffect) is "hello175" |
| 208 | hi! |
| 209 | PASS foo(new String("hello"), sideEffect) is "hello176" |
| 210 | hi! |
| 211 | PASS foo(new String("hello"), sideEffect) is "hello177" |
| 212 | hi! |
| 213 | PASS foo(new String("hello"), sideEffect) is "hello178" |
| 214 | hi! |
| 215 | PASS foo(new String("hello"), sideEffect) is "hello179" |
| 216 | hi! |
| 217 | PASS foo(new String("hello"), sideEffect) is "hello180" |
| 218 | hi! |
| 219 | PASS foo(new String("hello"), sideEffect) is "hello181" |
| 220 | hi! |
| 221 | PASS foo(new String("hello"), sideEffect) is "hello182" |
| 222 | hi! |
| 223 | PASS foo(new String("hello"), sideEffect) is "hello183" |
| 224 | hi! |
| 225 | PASS foo(new String("hello"), sideEffect) is "hello184" |
| 226 | hi! |
| 227 | PASS foo(new String("hello"), sideEffect) is "hello185" |
| 228 | hi! |
| 229 | PASS foo(new String("hello"), sideEffect) is "hello186" |
| 230 | hi! |
| 231 | PASS foo(new String("hello"), sideEffect) is "hello187" |
| 232 | hi! |
| 233 | PASS foo(new String("hello"), sideEffect) is "hello188" |
| 234 | hi! |
| 235 | PASS foo(new String("hello"), sideEffect) is "hello189" |
| 236 | hi! |
| 237 | PASS foo(new String("hello"), sideEffect) is "hello190" |
| 238 | hi! |
| 239 | PASS foo(new String("hello"), sideEffect) is "hello191" |
| 240 | hi! |
| 241 | PASS foo(new String("hello"), sideEffect) is "hello192" |
| 242 | hi! |
| 243 | PASS foo(new String("hello"), sideEffect) is "hello193" |
| 244 | hi! |
| 245 | PASS foo(new String("hello"), sideEffect) is "hello194" |
| 246 | hi! |
| 247 | PASS foo(new String("hello"), sideEffect) is "hello195" |
| 248 | hi! |
| 249 | PASS foo(new String("hello"), sideEffect) is "hello196" |
| 250 | hi! |
| 251 | PASS foo(new String("hello"), sideEffect) is "hello197" |
| 252 | hi! |
| 253 | PASS foo(new String("hello"), sideEffect) is "hello198" |
| 254 | hi! |
| 255 | PASS foo(new String("hello"), sideEffect) is "hello199" |
| 256 | PASS successfullyParsed is true |
| 257 | |
| 258 | TEST COMPLETE |
| 259 | |