|
139 | 139 |
|
140 | 140 |
|
141 | 141 | (deftest test-cons
|
142 |
| - (is (thrown? Throwable (cons 1 2))) |
| 142 | + (is (thrown? IllegalArgumentException (cons 1 2))) |
143 | 143 | (are [x y] (= x y)
|
144 | 144 | (cons 1 nil) '(1)
|
145 | 145 | (cons nil nil) '(nil)
|
|
244 | 244 |
|
245 | 245 | (deftest test-first
|
246 | 246 | ;(is (thrown? Exception (first)))
|
247 |
| - (is (thrown? Throwable (first true))) |
248 |
| - (is (thrown? Throwable (first false))) |
249 |
| - (is (thrown? Throwable (first 1))) |
250 |
| - ;(is (thrown? Throwable (first 1 2))) |
251 |
| - (is (thrown? Throwable (first \a))) |
252 |
| - (is (thrown? Throwable (first 's))) |
253 |
| - (is (thrown? Throwable (first :k))) |
| 247 | + (is (thrown? IllegalArgumentException (first true))) |
| 248 | + (is (thrown? IllegalArgumentException (first false))) |
| 249 | + (is (thrown? IllegalArgumentException (first 1))) |
| 250 | + ;(is (thrown? IllegalArgumentException (first 1 2))) |
| 251 | + (is (thrown? IllegalArgumentException (first \a))) |
| 252 | + (is (thrown? IllegalArgumentException (first 's))) |
| 253 | + (is (thrown? IllegalArgumentException (first :k))) |
254 | 254 | (are [x y] (= x y)
|
255 | 255 | (first nil) nil
|
256 | 256 |
|
|
310 | 310 |
|
311 | 311 |
|
312 | 312 | (deftest test-next
|
313 |
| - ; (is (thrown? Throwable (next))) |
314 |
| - (is (thrown? Throwable (next true))) |
315 |
| - (is (thrown? Throwable (next false))) |
316 |
| - (is (thrown? Throwable (next 1))) |
317 |
| - ;(is (thrown? Throwable (next 1 2))) |
318 |
| - (is (thrown? Throwable (next \a))) |
319 |
| - (is (thrown? Throwable (next 's))) |
320 |
| - (is (thrown? Throwable (next :k))) |
| 313 | + ; (is (thrown? IllegalArgumentException (next))) |
| 314 | + (is (thrown? IllegalArgumentException (next true))) |
| 315 | + (is (thrown? IllegalArgumentException (next false))) |
| 316 | + (is (thrown? IllegalArgumentException (next 1))) |
| 317 | + ;(is (thrown? IllegalArgumentException (next 1 2))) |
| 318 | + (is (thrown? IllegalArgumentException (next \a))) |
| 319 | + (is (thrown? IllegalArgumentException (next 's))) |
| 320 | + (is (thrown? IllegalArgumentException (next :k))) |
321 | 321 | (are [x y] (= x y)
|
322 | 322 | (next nil) nil
|
323 | 323 |
|
|
445 | 445 | ;; (ffirst coll) = (first (first coll))
|
446 | 446 | ;;
|
447 | 447 | (deftest test-ffirst
|
448 |
| -; (is (thrown? Throwable (ffirst))) |
| 448 | +; (is (thrown? IllegalArgumentException (ffirst))) |
449 | 449 | (are [x y] (= x y)
|
450 | 450 | (ffirst nil) nil
|
451 | 451 |
|
|
465 | 465 | ;; (fnext coll) = (first (next coll)) = (second coll)
|
466 | 466 | ;;
|
467 | 467 | (deftest test-fnext
|
468 |
| -; (is (thrown? Throwable (fnext))) |
| 468 | +; (is (thrown? IllegalArgumentException (fnext))) |
469 | 469 | (are [x y] (= x y)
|
470 | 470 | (fnext nil) nil
|
471 | 471 |
|
|
489 | 489 | ;; (nfirst coll) = (next (first coll))
|
490 | 490 | ;;
|
491 | 491 | (deftest test-nfirst
|
492 |
| -; (is (thrown? Throwable (nfirst))) |
| 492 | +; (is (thrown? IllegalArgumentException (nfirst))) |
493 | 493 | (are [x y] (= x y)
|
494 | 494 | (nfirst nil) nil
|
495 | 495 |
|
|
509 | 509 | ;; (nnext coll) = (next (next coll))
|
510 | 510 | ;;
|
511 | 511 | (deftest test-nnext
|
512 |
| -; (is (thrown? Throwable (nnext))) |
| 512 | +; (is (thrown? IllegalArgumentException (nnext))) |
513 | 513 | (are [x y] (= x y)
|
514 | 514 | (nnext nil) nil
|
515 | 515 |
|
|
881 | 881 |
|
882 | 882 |
|
883 | 883 | (deftest test-repeat
|
884 |
| - ;(is (thrown? Throwable (repeat))) |
| 884 | + ;(is (thrown? IllegalArgumentException (repeat))) |
885 | 885 |
|
886 | 886 | ; infinite sequence => use take
|
887 | 887 | (are [x y] (= x y)
|
|
0 commit comments