Uh oh!
There was an error while loading. Please reload this page.
Regression tests for comparers - #577
Conversation
msftclas
commented
Aug 9, 2015
Hi @manofstick, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! The agreement was validated by Microsoft and real humans are currently evaluating your PR. TTYL, MSBOT; |
manofstick
commented
Aug 10, 2015
Argh, the compiler is inlining these (obviously) and so no really achieving what I want. I will have to regenerate. Soon, soon.... |
latkin
commented
Aug 11, 2015
manofstick
commented
Aug 12, 2015
OK; hopefully this is a better test suite. I have now ensured that there are both the potential for the compiler to do inlining optimizations as well as not. This has meant that the number of tests has doubled. But, I have shrunk the format a little (limiting spaces, using 0,1 for false and true) and so the actual file is a little smaller than it was before. |
manofstick
commented
Aug 12, 2015
I'm feeling too lazy at the moment (and it's not really in scope of what I'm trying to achieve), but slight modifications to this suite could be used to pick up any inconsistencies between compiler optimizations and not, as well as between direct versions and wrapped versions, embedded in other types, etc... (on another note, when those items are fixed, then obviously this regression suite would need to be updated) |
latkin
commented
Aug 13, 2015
I'd like to merge this separately, and before, #513. That way it's unambiguous that behavior remains unchanged before/after 513 is applied. |
manofstick
commented
Aug 13, 2015
I agree, that was why I created this pull request :-) (wow, it's almost like we're talking in real time!) |
latkin
commented
Aug 13, 2015
Ah ok, "this will be merged into 513" made me think you planned to keep them together. |
manofstick
commented
Aug 13, 2015
No, I just merged it in so that I could make sure it worked before and after. |
manofstick
commented
Aug 13, 2015
(like it has been merged in, but I still expected the regression tests to run in a unmolested state...) Hmmm.. that make sense? |

This is a set of regression tests for #513. It's is branched from the point just before modifications in that pull requests began.
Possibly this is a bit of overkill, but I suppose that is the point of regression tests. This will be merged into #513, but is here to obviously prove that it was OK prior to the changes.
The data is mainly generated by running the CreateComparersRegression.fsx and pasting the results over the top of the bottom part of the ComparersRegression.fs file (I suppose it could have been a seperate file... Maybe that would have been better; but I'm hoping there really isn't much need to run it multiple times)