Commit c9c4686
Adds tests for Type Stability of FD functions. (#48)
* Adds tests for Type Stability of FD functions.
Test that most of the API functions for FixedDecimals are type stable in
their return type, using the `@inferred` test macro.
Tests this for all built-in integer types, across many precisions.
(Adds around 10 seconds to test time.)
* Improve instability tests of return type: === && isa
Make all the inferred tests actually test the return type is the correct
type by comparing `===` instead of `==`.
Make the unary test `@inferred(typemax(FD{T,f}))` test that the return
type is the correct type via `isa`.1 parent 815452a commit c9c4686
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
786 | 786 | | |
787 | 787 | | |
788 | 788 | | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
789 | 819 | | |
790 | 820 | | |
791 | 821 | | |
| |||
0 commit comments