Commit 59e90f7
initial implementation of a more comprehensive test suite (#99)
* initial implementation of a more comprehensive test suite
* fix laziness of Eq1 instance. Add Ord1 instance.
* correct the definition of <*>
* Improve compatibility with older versions of GHC and transformers
* add tests for SmallArray and ByteArray. add Eq1, Ord1, and Show1 for SmallArray
* fix implementation of <*> for SmallArray. The previous implementation did a pretty cool trick with a fixed-point combinator, but it didn't work. I couldn't figure out how to make it work, so I just copied the implementation used for Array and adapted it to SmallArray.
* correct foldrByteArray, which fixes the IsList implementation for ByteArray. Also, improve the performance of ByteArray's fromListN function
* improve compatibility with older transformers and base
* add tagged as dependency of test suite so Data.Proxy is available for older GHCs
* use spaces instead of tab in test cabal file
* guard isListLaws with CPP everywhere
* redefine fromList function for small array in test suite
* remove the accidentally exported fromList functions from Data.Primitive.SmallArray
* make fromListN safer for Array, SmallArray, and ByteArray
* make compatible with transformers-0.3.0.0 again
* document changes in changelog
* Bump lower bound for transformers back down to 0.2. Explain the test suite a little in a test suite readme
* allow future releases of quickcheck-classes to be accepted
* document the SmallArray list conversion functions
* add Read1 and Show1 instances for Array and SmallArray. Test Read and Show instances in test suite.
* mention Read1 in changelog
* Start testing Traversable laws. Test foldl1 and foldr1. Fix foldl1 implementation for Array and SmallArray.
* derive Read1 when shimming SmallArray
* For test suite, build quickcheck-classes without aeson and semigroupoids to accelerate travis builds
* pass cabal flags to more places
* remove double quotes from travis environment variable
* try to make travis work again
* fix cabal flags in travis file again
* remove CABAL_FLAGS from travis1 parent ea0734a commit 59e90f7
File tree
8 files changed
+399
-95
lines changed- Data/Primitive
- test
8 files changed
+399
-95
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
288 | 292 | | |
289 | 293 | | |
290 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
291 | 302 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
297 | 313 | | |
298 | 314 | | |
299 | 315 | | |
300 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
301 | 328 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
311 | 339 | | |
312 | 340 | | |
313 | 341 | | |
| |||
347 | 375 | | |
348 | 376 | | |
349 | 377 | | |
350 | | - | |
| 378 | + | |
351 | 379 | | |
352 | 380 | | |
353 | 381 | | |
| |||
478 | 506 | | |
479 | 507 | | |
480 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
481 | 526 | | |
482 | 527 | | |
483 | 528 | | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
| 529 | + | |
| 530 | + | |
490 | 531 | | |
491 | 532 | | |
492 | 533 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 534 | + | |
498 | 535 | | |
499 | 536 | | |
500 | | - | |
| 537 | + | |
501 | 538 | | |
502 | 539 | | |
503 | 540 | | |
| |||
526 | 563 | | |
527 | 564 | | |
528 | 565 | | |
| 566 | + | |
529 | 567 | | |
530 | 568 | | |
531 | 569 | | |
| |||
649 | 687 | | |
650 | 688 | | |
651 | 689 | | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
652 | 699 | | |
653 | | - | |
654 | | - | |
655 | | - | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
656 | 719 | | |
657 | 720 | | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
665 | 732 | | |
666 | 733 | | |
667 | 734 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
181 | 180 | | |
182 | 181 | | |
183 | 182 | | |
184 | | - | |
| 183 | + | |
185 | 184 | | |
186 | 185 | | |
187 | | - | |
188 | | - | |
189 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
190 | 197 | | |
191 | 198 | | |
192 | 199 | | |
| |||
444 | 451 | | |
445 | 452 | | |
446 | 453 | | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
0 commit comments