themasch/node-bencode

2014-05-10 14:02:06
6.0
7.0
8.0
9.0
✓10.0
✓25.0
✓26.0
✓27.0
✓28.0
✓29.0
22.0
23.0
24.0
✓16.0
✓17.0
✓18.0
✓19.0
✓20.0
✓21.0
✓22.0
✓23.0
✓24.0
✓6.0
✓11.0
11.5
✓11.6
✓12.0
✓15.0
✓6.0
✓6.0
4.2
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" not ok 7 TypeError: 'Object.defineProperty' is not a function --- operator: error expected: undefined actual: { message: '\'Object.defineProperty\' is not a function' } stack: Dict([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:129 <anonymous function: decode.dictionary>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:70 <anonymous function: decode.next>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:38 decode([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:27 <anonymous function: 39>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:5687 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4837 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4897 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4896 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4901 ... # should be able to decode a dictionary not ok 8 TypeError: 'Object.defineProperty' is not a function --- operator: error expected: undefined actual: { message: '\'Object.defineProperty\' is not a function' } stack: Dict([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:129 <anonymous function: decode.dictionary>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:70 <anonymous function: decode.next>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:38 decode([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:27 <anonymous function: 39>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:5692 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4837 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4897 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4896 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4901 ... # should be able to decode a list ok 9 should be equivalent not ok 10 plan != count --- operator: fail expected: 3 actual: 1 ... # should return the correct type ok 11 (unnamed assert) # should be able to decode stuff in dicts (issue #12) not ok 12 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:220 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:177 encode([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:155 <anonymous function: 39>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:5738 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4837 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4897 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4896 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4901 <anonymous function: Test.prototype._assert>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4997 ... not ok 13 plan != count --- operator: fail expected: 4 actual: 1 ... # bencode#decode(x, 'uft8') # should be able to decode an integer ok 14 should be equal ok 15 should be equal # should be able to decode a float (as int) ok 16 should be equal ok 17 should be equal # should be able to decode a string ok 18 should be equal ok 19 should be equivalent # should be able to decode "binary keys" not ok 20 TypeError: 'Object.defineProperty' is not a function --- operator: error expected: undefined actual: { message: '\'Object.defineProperty\' is not a function' } stack: Dict([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:129 <anonymous function: decode.dictionary>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:70 <anonymous function: decode.next>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:38 decode([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:27 <anonymous function: 40>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:5771 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4837 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4897 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4896 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4901 ... # should be able to decode a dictionary not ok 21 TypeError: 'Object.defineProperty' is not a function --- operator: error expected: undefined actual: { message: '\'Object.defineProperty\' is not a function' } stack: Dict([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:129 <anonymous function: decode.dictionary>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:70 <anonymous function: decode.next>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:38 decode([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:27 <anonymous function: 40>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:5777 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4837 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4897 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4896 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4901 ... # should be able to decode a list ok 22 should be equivalent not ok 23 plan != count --- operator: fail expected: 3 actual: 1 ... # should return the correct type ok 24 (unnamed assert) # should be able to decode stuff in dicts (issue #12) not ok 25 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:220 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:177 encode([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:155 <anonymous function: 40>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:5820 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4837 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4897 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4896 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4901 <anonymous function: Test.prototype._assert>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4997 ... not ok 26 plan != count --- operator: fail expected: 4 actual: 1 ... # bencode#encode() # should always return a Buffer not ok 27 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:220 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:177 encode([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:155 <anonymous function: 41>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:5842 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4837 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4897 <anonymous function: Test.prototype.test>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4865 <anonymous function>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:2188 ... # should sort dictionaries not ok 28 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:220 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:177 encode([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:155 <anonymous function: 41>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:5852 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4837 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4897 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4896 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4901 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4841 ... # should force keys to be strings not ok 29 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:220 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:177 encode([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:155 <anonymous function: 41>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:5861 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4837 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4897 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4896 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4901 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4841 ... # should be able to encode a positive integer ok 30 should be equal not ok 31 plan != count --- operator: fail expected: 5 actual: 1 ... # should be able to encode a negative integer ok 32 should be equal # should be able to encode a positive float (as int) ok 33 should be equal # should be able to encode a negative float (as int) ok 34 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 35 should be equal ok 36 should be equal ok 37 should be equal ok 38 should be equal ok 39 should be equal ok 40 should be equal ok 41 should be equal ok 42 should be equal ok 43 should be equal ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal # should be able to encode a previously problematice 64 bit int ok 350 should be equal # should be able to encode a negative 64 bit int ok 351 should be equal # should be able to encode a positive 64 bit float (as int) ok 352 should be equal # should be able to encode a negative 64 bit float (as int) ok 353 should be equal # should be able to encode a string ok 354 should be equal ok 355 should be equal # should be able to encode a unicode string ok 356 should be equivalent ok 357 should be equivalent # should be able to encode a buffer ok 358 should be equal ok 359 should be equal # should be able to encode an array ok 360 should be equal ok 361 should be equal # should be able to encode an object not ok 362 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:220 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:177 encode([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:155 <anonymous function: 41>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:5945 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4837 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4897 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4896 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4901 <anonymous function: Test.prototype._assert>([arguments not available])@http://git.testling.com/work/themasch/repos/6a76da66a6a117868081f8e68a704c529cb59a22.1399724123315/1399724123723.d934f0a9.js:4997 ... not ok 363 plan != count --- operator: fail expected: 3 actual: 1 ... 1..363 # tests 363 # pass 347 # fail 16
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
timeout waiting to hear back from iexplore/9.0
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" not ok 7 TypeError: Object doesn't support this action --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this action', message: 'Object doesn\'t support this action', number: -2146827843 } ... # should be able to decode a dictionary not ok 8 TypeError: Object doesn't support this action --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this action', message: 'Object doesn\'t support this action', number: -2146827843 } ... # should be able to decode a list ok 9 should be equivalent not ok 10 plan != count --- operator: fail expected: 3 actual: 1 ... # should return the correct type ok 11 (unnamed assert) # should be able to decode stuff in dicts (issue #12) not ok 12 TypeError: Object doesn't support this property or method --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this property or method', message: 'Object doesn\'t support this property or method', number: -2146827850 } ... not ok 13 plan != count --- operator: fail expected: 4 actual: 1 ... # bencode#decode(x, 'uft8') # should be able to decode an integer ok 14 should be equal ok 15 should be equal # should be able to decode a float (as int) ok 16 should be equal ok 17 should be equal # should be able to decode a string ok 18 should be equal ok 19 should be equivalent # should be able to decode "binary keys" not ok 20 TypeError: Object doesn't support this action --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this action', message: 'Object doesn\'t support this action', number: -2146827843 } ... # should be able to decode a dictionary not ok 21 TypeError: Object doesn't support this action --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this action', message: 'Object doesn\'t support this action', number: -2146827843 } ... # should be able to decode a list ok 22 should be equivalent not ok 23 plan != count --- operator: fail expected: 3 actual: 1 ... # should return the correct type ok 24 (unnamed assert) # should be able to decode stuff in dicts (issue #12) not ok 25 TypeError: Object doesn't support this property or method --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this property or method', message: 'Object doesn\'t support this property or method', number: -2146827850 } ... not ok 26 plan != count --- operator: fail expected: 4 actual: 1 ... # bencode#encode() # should always return a Buffer not ok 27 TypeError: Object doesn't support this property or method --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this property or method', message: 'Object doesn\'t support this property or method', number: -2146827850 } ... # should sort dictionaries not ok 28 TypeError: Object doesn't support this property or method --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this property or method', message: 'Object doesn\'t support this property or method', number: -2146827850 } ... # should force keys to be strings not ok 29 TypeError: Object doesn't support this property or method --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this property or method', message: 'Object doesn\'t support this property or method', number: -2146827850 } ... # should be able to encode a positive integer ok 30 should be equal not ok 31 plan != count --- operator: fail expected: 5 actual: 1 ... # should be able to encode a negative integer ok 32 should be equal # should be able to encode a positive float (as int) ok 33 should be equal # should be able to encode a negative float (as int) ok 34 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 35 should be equal ok 36 should be equal ok 37 should be equal ok 38 should be equal ok 39 should be equal ok 40 should be equal ok 41 should be equal ok 42 should be equal ok 43 should be equal ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal # should be able to encode a previously problematice 64 bit int ok 350 should be equal # should be able to encode a negative 64 bit int ok 351 should be equal # should be able to encode a positive 64 bit float (as int) ok 352 should be equal # should be able to encode a negative 64 bit float (as int) ok 353 should be equal # should be able to encode a string ok 354 should be equal ok 355 should be equal # should be able to encode a unicode string ok 356 should be equivalent ok 357 should be equivalent # should be able to encode a buffer ok 358 should be equal ok 359 should be equal # should be able to encode an array ok 360 should be equal ok 361 should be equal # should be able to encode an object not ok 362 TypeError: Object doesn't support this property or method --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this property or method', message: 'Object doesn\'t support this property or method', number: -2146827850 } ... not ok 363 plan != count --- operator: fail expected: 3 actual: 1 ... 1..363 # tests 363 # pass 347 # fail 16
not ok 1 Error: Expected identifier, string or number on line 133
not ok 1 Error: Expected identifier, string or number on line 133
2014-04-30 15:46:29
2014-04-30 02:00:10
6.0
7.0
8.0
✓9.0
✓10.0
✓22.0
✓23.0
✓24.0
✓25.0
✓26.0
✓27.0
✓28.0
✓29.0
✓16.0
✓17.0
✓18.0
✓19.0
✓20.0
✓21.0
✓22.0
✓23.0
✓24.0
✓6.0
✓11.0
11.5
✓11.6
✓12.0
✓15.0
✓6.0
✓6.0
4.2
android-browser/4.2
timeout waiting to hear back from android-browser/4.2
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" not ok 7 TypeError: 'Object.defineProperty' is not a function --- operator: error expected: undefined actual: { message: '\'Object.defineProperty\' is not a function' } stack: Dict([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:129 <anonymous function: decode.dictionary>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:70 <anonymous function: decode.next>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:38 decode([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:27 <anonymous function: 33>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:5497 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4647 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4707 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4706 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4711 ... # should be able to decode a dictionary not ok 8 TypeError: 'Object.defineProperty' is not a function --- operator: error expected: undefined actual: { message: '\'Object.defineProperty\' is not a function' } stack: Dict([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:129 <anonymous function: decode.dictionary>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:70 <anonymous function: decode.next>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:38 decode([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:27 <anonymous function: 33>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:5502 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4647 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4707 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4706 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4711 ... # should be able to decode a list ok 9 should be equivalent not ok 10 plan != count --- operator: fail expected: 3 actual: 1 ... # should return the correct type ok 11 (unnamed assert) # should be able to decode stuff in dicts (issue #12) not ok 12 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:220 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:177 encode([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:155 <anonymous function: 33>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:5548 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4647 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4707 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4706 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4711 <anonymous function: Test.prototype._assert>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4807 ... not ok 13 plan != count --- operator: fail expected: 4 actual: 1 ... # bencode#decode(x, 'uft8') # should be able to decode an integer ok 14 should be equal ok 15 should be equal # should be able to decode a float (as int) ok 16 should be equal ok 17 should be equal # should be able to decode a string ok 18 should be equal ok 19 should be equivalent # should be able to decode "binary keys" not ok 20 TypeError: 'Object.defineProperty' is not a function --- operator: error expected: undefined actual: { message: '\'Object.defineProperty\' is not a function' } stack: Dict([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:129 <anonymous function: decode.dictionary>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:70 <anonymous function: decode.next>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:38 decode([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:27 <anonymous function: 34>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:5581 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4647 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4707 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4706 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4711 ... # should be able to decode a dictionary not ok 21 TypeError: 'Object.defineProperty' is not a function --- operator: error expected: undefined actual: { message: '\'Object.defineProperty\' is not a function' } stack: Dict([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:129 <anonymous function: decode.dictionary>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:70 <anonymous function: decode.next>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:38 decode([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:27 <anonymous function: 34>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:5587 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4647 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4707 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4706 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4711 ... # should be able to decode a list ok 22 should be equivalent not ok 23 plan != count --- operator: fail expected: 3 actual: 1 ... # should return the correct type ok 24 (unnamed assert) # should be able to decode stuff in dicts (issue #12) not ok 25 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:220 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:177 encode([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:155 <anonymous function: 34>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:5630 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4647 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4707 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4706 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4711 <anonymous function: Test.prototype._assert>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4807 ... not ok 26 plan != count --- operator: fail expected: 4 actual: 1 ... # bencode#encode() # should always return a Buffer not ok 27 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:220 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:177 encode([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:155 <anonymous function: 35>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:5652 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4647 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4707 <anonymous function: Test.prototype.test>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4675 <anonymous function>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:1921 ... # should sort dictionaries not ok 28 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:220 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:177 encode([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:155 <anonymous function: 35>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:5662 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4647 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4707 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4706 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4711 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4651 ... # should force keys to be strings not ok 29 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:220 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:177 encode([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:155 <anonymous function: 35>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:5671 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4647 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4707 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4706 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4711 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4651 ... # should be able to encode a positive integer ok 30 should be equal not ok 31 plan != count --- operator: fail expected: 5 actual: 1 ... # should be able to encode a negative integer ok 32 should be equal # should be able to encode a positive float (as int) ok 33 should be equal # should be able to encode a negative float (as int) ok 34 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 35 should be equal ok 36 should be equal ok 37 should be equal ok 38 should be equal ok 39 should be equal ok 40 should be equal ok 41 should be equal ok 42 should be equal ok 43 should be equal ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal # should be able to encode a previously problematice 64 bit int ok 350 should be equal # should be able to encode a negative 64 bit int ok 351 should be equal # should be able to encode a positive 64 bit float (as int) ok 352 should be equal # should be able to encode a negative 64 bit float (as int) ok 353 should be equal # should be able to encode a string ok 354 should be equal ok 355 should be equal # should be able to encode a unicode string ok 356 should be equivalent ok 357 should be equivalent # should be able to encode a buffer ok 358 should be equal ok 359 should be equal # should be able to encode an array ok 360 should be equal ok 361 should be equal # should be able to encode an object not ok 362 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:220 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:177 encode([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:155 <anonymous function: 35>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:5755 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4647 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4707 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4706 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4711 <anonymous function: Test.prototype._assert>([arguments not available])@http://git.testling.com/work/themasch/repos/c887bf960a0a77f166cc2c503355d327059dd4a4.1398818862181/1398818862693.f4f0b23a.js:4807 ... not ok 363 plan != count --- operator: fail expected: 3 actual: 1 ... 1..363 # tests 363 # pass 347 # fail 16
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" not ok 7 TypeError: Object doesn't support this action --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this action', message: 'Object doesn\'t support this action', number: -2146827843 } ... # should be able to decode a dictionary not ok 8 TypeError: Object doesn't support this action --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this action', message: 'Object doesn\'t support this action', number: -2146827843 } ... # should be able to decode a list ok 9 should be equivalent not ok 10 plan != count --- operator: fail expected: 3 actual: 1 ... # should return the correct type ok 11 (unnamed assert) # should be able to decode stuff in dicts (issue #12) not ok 12 TypeError: Object doesn't support this property or method --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this property or method', message: 'Object doesn\'t support this property or method', number: -2146827850 } ... not ok 13 plan != count --- operator: fail expected: 4 actual: 1 ... # bencode#decode(x, 'uft8') # should be able to decode an integer ok 14 should be equal ok 15 should be equal # should be able to decode a float (as int) ok 16 should be equal ok 17 should be equal # should be able to decode a string ok 18 should be equal ok 19 should be equivalent # should be able to decode "binary keys" not ok 20 TypeError: Object doesn't support this action --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this action', message: 'Object doesn\'t support this action', number: -2146827843 } ... # should be able to decode a dictionary not ok 21 TypeError: Object doesn't support this action --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this action', message: 'Object doesn\'t support this action', number: -2146827843 } ... # should be able to decode a list ok 22 should be equivalent not ok 23 plan != count --- operator: fail expected: 3 actual: 1 ... # should return the correct type ok 24 (unnamed assert) # should be able to decode stuff in dicts (issue #12) not ok 25 TypeError: Object doesn't support this property or method --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this property or method', message: 'Object doesn\'t support this property or method', number: -2146827850 } ... not ok 26 plan != count --- operator: fail expected: 4 actual: 1 ... # bencode#encode() # should always return a Buffer not ok 27 TypeError: Object doesn't support this property or method --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this property or method', message: 'Object doesn\'t support this property or method', number: -2146827850 } ... # should sort dictionaries not ok 28 TypeError: Object doesn't support this property or method --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this property or method', message: 'Object doesn\'t support this property or method', number: -2146827850 } ... # should force keys to be strings not ok 29 TypeError: Object doesn't support this property or method --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this property or method', message: 'Object doesn\'t support this property or method', number: -2146827850 } ... # should be able to encode a positive integer ok 30 should be equal not ok 31 plan != count --- operator: fail expected: 5 actual: 1 ... # should be able to encode a negative integer ok 32 should be equal # should be able to encode a positive float (as int) ok 33 should be equal # should be able to encode a negative float (as int) ok 34 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 35 should be equal ok 36 should be equal ok 37 should be equal ok 38 should be equal ok 39 should be equal ok 40 should be equal ok 41 should be equal ok 42 should be equal ok 43 should be equal ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal # should be able to encode a previously problematice 64 bit int ok 350 should be equal # should be able to encode a negative 64 bit int ok 351 should be equal # should be able to encode a positive 64 bit float (as int) ok 352 should be equal # should be able to encode a negative 64 bit float (as int) ok 353 should be equal # should be able to encode a string ok 354 should be equal ok 355 should be equal # should be able to encode a unicode string ok 356 should be equivalent ok 357 should be equivalent # should be able to encode a buffer ok 358 should be equal ok 359 should be equal # should be able to encode an array ok 360 should be equal ok 361 should be equal # should be able to encode an object not ok 362 TypeError: Object doesn't support this property or method --- operator: error expected: undefined actual: { description: 'Object doesn\'t support this property or method', message: 'Object doesn\'t support this property or method', number: -2146827850 } ... not ok 363 plan != count --- operator: fail expected: 3 actual: 1 ... 1..363 # tests 363 # pass 347 # fail 16
not ok 1 Error: Expected identifier, string or number on line 133
not ok 1 Error: Expected identifier, string or number on line 133
2014-04-29 11:57:57
6.0
7.0
8.0
✓9.0
✓10.0
✓22.0
✓23.0
✓24.0
✓25.0
✓26.0
✓27.0
✓28.0
✓29.0
✓16.0
✓17.0
✓18.0
✓19.0
✓20.0
✓21.0
✓22.0
✓23.0
✓24.0
✓6.0
✓11.0
11.5
✓11.6
✓12.0
✓15.0
✓6.0
✓6.0
4.2
android-browser/4.2
timeout waiting to hear back from android-browser/4.2
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) not ok 13 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:200 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:157 encode([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:135 <anonymous function: 32>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:5528 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4627 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4687 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4686 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4691 <anonymous function: Test.prototype._assert>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4787 ... not ok 14 plan != count --- operator: fail expected: 4 actual: 1 ... # bencode#decode(x, 'uft8') # should be able to decode an integer ok 15 should be equal ok 16 should be equal # should be able to decode a float (as int) ok 17 should be equal ok 18 should be equal # should be able to decode a string ok 19 should be equal ok 20 should be equivalent # should be able to decode "binary keys" ok 21 (unnamed assert) # should be able to decode a dictionary ok 22 should be equivalent ok 23 should be equivalent ok 24 should be equivalent # should be able to decode a list ok 25 should be equivalent # should return the correct type ok 26 (unnamed assert) # should be able to decode stuff in dicts (issue #12) not ok 27 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:200 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:157 encode([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:135 <anonymous function: 33>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:5610 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4627 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4687 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4686 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4691 <anonymous function: Test.prototype._assert>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4787 ... not ok 28 plan != count --- operator: fail expected: 4 actual: 1 ... # bencode#encode() # should always return a Buffer not ok 29 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:200 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:157 encode([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:135 <anonymous function: 34>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:5632 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4627 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4687 <anonymous function: Test.prototype.test>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4655 <anonymous function>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:1901 ... # should sort dictionaries not ok 30 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:200 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:157 encode([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:135 <anonymous function: 34>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:5642 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4627 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4687 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4686 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4691 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4631 ... # should force keys to be strings not ok 31 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:200 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:157 encode([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:135 <anonymous function: 34>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:5651 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4627 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4687 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4686 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4691 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4631 ... # should be able to encode a positive integer ok 32 should be equal not ok 33 plan != count --- operator: fail expected: 5 actual: 1 ... # should be able to encode a negative integer ok 34 should be equal # should be able to encode a positive float (as int) ok 35 should be equal # should be able to encode a negative float (as int) ok 36 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 37 should be equal ok 38 should be equal ok 39 should be equal ok 40 should be equal ok 41 should be equal ok 42 should be equal ok 43 should be equal ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal # should be able to encode a previously problematice 64 bit int ok 352 should be equal # should be able to encode a negative 64 bit int ok 353 should be equal # should be able to encode a positive 64 bit float (as int) ok 354 should be equal # should be able to encode a negative 64 bit float (as int) ok 355 should be equal # should be able to encode a string ok 356 should be equal ok 357 should be equal # should be able to encode a unicode string ok 358 should be equivalent ok 359 should be equivalent # should be able to encode a buffer ok 360 should be equal ok 361 should be equal # should be able to encode an array ok 362 should be equal ok 363 should be equal # should be able to encode an object not ok 364 TypeError: 'Object.keys' is not a function --- operator: error expected: undefined actual: { message: '\'Object.keys\' is not a function' } stack: <anonymous function: encode.dict>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:200 <anonymous function: encode._encode>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:157 encode([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:135 <anonymous function: 34>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:5735 <anonymous function: Test.prototype.run>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4627 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4687 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4686 <anonymous function: EventEmitter.prototype.emit>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:0 <anonymous function: Test.prototype._end>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4691 <anonymous function: Test.prototype._assert>([arguments not available])@http://git.testling.com/work/themasch/repos/50c859fd95437b85b15f52834b3666153c294386.1398768218193/1398768218642.b8f555cf.js:4787 ... not ok 365 plan != count --- operator: fail expected: 3 actual: 1 ... 1..365 # tests 365 # pass 355 # fail 10
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282 should be equal ok 283 should be equal ok 284 should be equal ok 285 should be equal ok 286 should be equal ok 287 should be equal ok 288 should be equal ok 289 should be equal ok 290 should be equal ok 291 should be equal ok 292 should be equal ok 293 should be equal ok 294 should be equal ok 295 should be equal ok 296 should be equal ok 297 should be equal ok 298 should be equal ok 299 should be equal ok 300 should be equal ok 301 should be equal ok 302 should be equal ok 303 should be equal ok 304 should be equal ok 305 should be equal ok 306 should be equal ok 307 should be equal ok 308 should be equal ok 309 should be equal ok 310 should be equal ok 311 should be equal ok 312 should be equal ok 313 should be equal ok 314 should be equal ok 315 should be equal ok 316 should be equal ok 317 should be equal ok 318 should be equal ok 319 should be equal ok 320 should be equal ok 321 should be equal ok 322 should be equal ok 323 should be equal ok 324 should be equal ok 325 should be equal ok 326 should be equal ok 327 should be equal ok 328 should be equal ok 329 should be equal ok 330 should be equal ok 331 should be equal ok 332 should be equal ok 333 should be equal ok 334 should be equal ok 335 should be equal ok 336 should be equal ok 337 should be equal ok 338 should be equal ok 339 should be equal ok 340 should be equal ok 341 should be equal ok 342 should be equal ok 343 should be equal ok 344 should be equal ok 345 should be equal ok 346 should be equal ok 347 should be equal ok 348 should be equal ok 349 should be equal ok 350 should be equal ok 351 should be equal ok 352 should be equal ok 353 should be equal ok 354 should be equal ok 355 should be equal ok 356 should be equal ok 357 should be equal ok 358 should be equal # should be able to encode a previously problematice 64 bit int ok 359 should be equal # should be able to encode a negative 64 bit int ok 360 should be equal # should be able to encode a positive 64 bit float (as int) ok 361 should be equal # should be able to encode a negative 64 bit float (as int) ok 362 should be equal # should be able to encode a string ok 363 should be equal ok 364 should be equal # should be able to encode a unicode string ok 365 should be equivalent ok 366 should be equivalent # should be able to encode a buffer ok 367 should be equal ok 368 should be equal # should be able to encode an array ok 369 should be equal ok 370 should be equal # should be able to encode an object ok 371 should be equal ok 372 should be equal ok 373 should be equal 1..373 # tests 373 # pass 373 # ok
TAP version 13 # bencode#decode(x) # should be able to decode an integer ok 1 should be equal ok 2 should be equal # should be able to decode a float (as int) ok 3 should be equal ok 4 should be equal # should be able to decode a string ok 5 should be equivalent ok 6 should be equivalent # should be able to decode "binary keys" ok 7 (unnamed assert) # should be able to decode a dictionary ok 8 should be equivalent ok 9 should be equivalent ok 10 should be equivalent # should be able to decode a list ok 11 should be equivalent # should return the correct type ok 12 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 13 should be equal ok 14 should be equivalent ok 15 should be equivalent ok 16 should be equivalent # bencode#decode(x, 'uft8') # should be able to decode an integer ok 17 should be equal ok 18 should be equal # should be able to decode a float (as int) ok 19 should be equal ok 20 should be equal # should be able to decode a string ok 21 should be equal ok 22 should be equivalent # should be able to decode "binary keys" ok 23 (unnamed assert) # should be able to decode a dictionary ok 24 should be equivalent ok 25 should be equivalent ok 26 should be equivalent # should be able to decode a list ok 27 should be equivalent # should return the correct type ok 28 (unnamed assert) # should be able to decode stuff in dicts (issue #12) ok 29 should be equal ok 30 should be equivalent ok 31 should be equivalent ok 32 should be equivalent # bencode#encode() # should always return a Buffer ok 33 its a buffer for empty dicts ok 34 its a buffer for strings ok 35 its a buffer for lists ok 36 its a buffer for big dicts ok 37 its a buffer for numbers # should sort dictionaries ok 38 should be equal # should force keys to be strings ok 39 should be equal # should be able to encode a positive integer ok 40 should be equal # should be able to encode a negative integer ok 41 should be equal # should be able to encode a positive float (as int) ok 42 should be equal # should be able to encode a negative float (as int) ok 43 should be equal # should be able to safely encode numbers between -/+ 2 ^ 53 (as ints) ok 44 should be equal ok 45 should be equal ok 46 should be equal ok 47 should be equal ok 48 should be equal ok 49 should be equal ok 50 should be equal ok 51 should be equal ok 52 should be equal ok 53 should be equal ok 54 should be equal ok 55 should be equal ok 56 should be equal ok 57 should be equal ok 58 should be equal ok 59 should be equal ok 60 should be equal ok 61 should be equal ok 62 should be equal ok 63 should be equal ok 64 should be equal ok 65 should be equal ok 66 should be equal ok 67 should be equal ok 68 should be equal ok 69 should be equal ok 70 should be equal ok 71 should be equal ok 72 should be equal ok 73 should be equal ok 74 should be equal ok 75 should be equal ok 76 should be equal ok 77 should be equal ok 78 should be equal ok 79 should be equal ok 80 should be equal ok 81 should be equal ok 82 should be equal ok 83 should be equal ok 84 should be equal ok 85 should be equal ok 86 should be equal ok 87 should be equal ok 88 should be equal ok 89 should be equal ok 90 should be equal ok 91 should be equal ok 92 should be equal ok 93 should be equal ok 94 should be equal ok 95 should be equal ok 96 should be equal ok 97 should be equal ok 98 should be equal ok 99 should be equal ok 100 should be equal ok 101 should be equal ok 102 should be equal ok 103 should be equal ok 104 should be equal ok 105 should be equal ok 106 should be equal ok 107 should be equal ok 108 should be equal ok 109 should be equal ok 110 should be equal ok 111 should be equal ok 112 should be equal ok 113 should be equal ok 114 should be equal ok 115 should be equal ok 116 should be equal ok 117 should be equal ok 118 should be equal ok 119 should be equal ok 120 should be equal ok 121 should be equal ok 122 should be equal ok 123 should be equal ok 124 should be equal ok 125 should be equal ok 126 should be equal ok 127 should be equal ok 128 should be equal ok 129 should be equal ok 130 should be equal ok 131 should be equal ok 132 should be equal ok 133 should be equal ok 134 should be equal ok 135 should be equal ok 136 should be equal ok 137 should be equal ok 138 should be equal ok 139 should be equal ok 140 should be equal ok 141 should be equal ok 142 should be equal ok 143 should be equal ok 144 should be equal ok 145 should be equal ok 146 should be equal ok 147 should be equal ok 148 should be equal ok 149 should be equal ok 150 should be equal ok 151 should be equal ok 152 should be equal ok 153 should be equal ok 154 should be equal ok 155 should be equal ok 156 should be equal ok 157 should be equal ok 158 should be equal ok 159 should be equal ok 160 should be equal ok 161 should be equal ok 162 should be equal ok 163 should be equal ok 164 should be equal ok 165 should be equal ok 166 should be equal ok 167 should be equal ok 168 should be equal ok 169 should be equal ok 170 should be equal ok 171 should be equal ok 172 should be equal ok 173 should be equal ok 174 should be equal ok 175 should be equal ok 176 should be equal ok 177 should be equal ok 178 should be equal ok 179 should be equal ok 180 should be equal ok 181 should be equal ok 182 should be equal ok 183 should be equal ok 184 should be equal ok 185 should be equal ok 186 should be equal ok 187 should be equal ok 188 should be equal ok 189 should be equal ok 190 should be equal ok 191 should be equal ok 192 should be equal ok 193 should be equal ok 194 should be equal ok 195 should be equal ok 196 should be equal ok 197 should be equal ok 198 should be equal ok 199 should be equal ok 200 should be equal ok 201 should be equal ok 202 should be equal ok 203 should be equal ok 204 should be equal ok 205 should be equal ok 206 should be equal ok 207 should be equal ok 208 should be equal ok 209 should be equal ok 210 should be equal ok 211 should be equal ok 212 should be equal ok 213 should be equal ok 214 should be equal ok 215 should be equal ok 216 should be equal ok 217 should be equal ok 218 should be equal ok 219 should be equal ok 220 should be equal ok 221 should be equal ok 222 should be equal ok 223 should be equal ok 224 should be equal ok 225 should be equal ok 226 should be equal ok 227 should be equal ok 228 should be equal ok 229 should be equal ok 230 should be equal ok 231 should be equal ok 232 should be equal ok 233 should be equal ok 234 should be equal ok 235 should be equal ok 236 should be equal ok 237 should be equal ok 238 should be equal ok 239 should be equal ok 240 should be equal ok 241 should be equal ok 242 should be equal ok 243 should be equal ok 244 should be equal ok 245 should be equal ok 246 should be equal ok 247 should be equal ok 248 should be equal ok 249 should be equal ok 250 should be equal ok 251 should be equal ok 252 should be equal ok 253 should be equal ok 254 should be equal ok 255 should be equal ok 256 should be equal ok 257 should be equal ok 258 should be equal ok 259 should be equal ok 260 should be equal ok 261 should be equal ok 262 should be equal ok 263 should be equal ok 264 should be equal ok 265 should be equal ok 266 should be equal ok 267 should be equal ok 268 should be equal ok 269 should be equal ok 270 should be equal ok 271 should be equal ok 272 should be equal ok 273 should be equal ok 274 should be equal ok 275 should be equal ok 276 should be equal ok 277 should be equal ok 278 should be equal ok 279 should be equal ok 280 should be equal ok 281 should be equal ok 282