-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Diff package instead diff program to test cabal-to-dhall #90
Conversation
Can you confirm invalid tests produce useful output? Attaching example output here would help me evaluate. |
The Diff output is similar to the utility one, for example modifying the
The output of the failing tests is:
Maybe the comment should be more precise cause is the difference with the dhall file generated from cabal one. |
Anyway let me replicate the output for |
Is there a reason why this code is written differently to how |
@quasicomputational mmm, |
I think we should. I agree with your earlier worry that the error message isn't clear that the diff is comparing to the re-serialised golden file rather than the exact representation on disk, but that's actually already a problem in the |
With the last commit the diff output is similar to
|
As the diff ouput can be useful although we change the test check test in |
e370b1f
to
fe747cf
Compare
@ocharles what do you think about merge it as is? |
Hi - I've been at ZuriHac all weekend and haven't had a chance to review
yet. I'll try and review it this week!
…On Sun, 10 Jun 2018, 8:39 pm Javier Neira, ***@***.***> wrote:
@ocharles <https://github.com/ocharles> what do you think about merge it
as is?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#90 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABRjtR-Q-7wKBTgZKNfPXm9TyM4VTJ5ks5t7WfjgaJpZM4UbbL5>
.
|
I think we should do this. https://hackage.haskell.org/package/dhall-1.14.0/docs/Dhall-Diff.html is already doing the hard work for us, it just didn't exist when we first wrote these tests. |
e87a49c
to
913644e
Compare
913644e
to
5ccc1e8
Compare
Looks sensible to me (still). I think I'd merge this without updating the tests to Dhall 1.19 and leave that to #143, but it's not really a big difference either way. |
d1bb365
to
9336603
Compare
Ok, i've re-rebased this one with master |
Slightly reformatted but looks good to me! Will merge once CI is happy. Thank you! |
As commented in #72