Skip to content

Conversation

@expipiplus1
Copy link
Contributor

I've merged the ghc 8.10 branch against the sorted-import branch and added some basic tests (Had to add a blank line function to the test suite)

I'm not sure if I'm being dense, but are there any tests where one enters the initial and expected source files, or is every test a "passthrough" test. i.e. would the identity function pass the testsuite?!

(I've targeted this against the ghc-8.10 branch because it includes those commits too)

The only required checklist items on @lspitzner's PR were:

  • tests (I'm not sure if these ones here are sufficient)
  • testing on a large codebase (I've been running this daily for ages without any issues whatsoever (including on some very large codebases))

(reopened from #325)

import TestJustAbitToLongModuleNameLikeThisOneIs ()
import MoreThanSufficientlyLongModuleNameWithSome
(items, that, will, not, fit, inA, compact, layout)
(compact, fit, inA, items, layout, not, that, will)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆 These are funny now that they're sorted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can think of an alphabetical sentence with the same meaning we should use that!

@tfausak tfausak mentioned this pull request Dec 11, 2020
16 tasks
@tfausak
Copy link
Collaborator

tfausak commented Dec 11, 2020

are there any tests where one enters the initial and expected source files

Not that I know of, but it seems like there should be!

Copy link
Collaborator

@tfausak tfausak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't really speak to the code, but the result (sorting imports) looks great! Thanks for sticking with this and getting it over the line.

@tfausak tfausak merged commit 9e53988 into lspitzner:master Dec 11, 2020
@tfausak tfausak mentioned this pull request Dec 11, 2020
@expipiplus1
Copy link
Contributor Author

expipiplus1 commented Dec 12, 2020 via email

@expipiplus1 expipiplus1 deleted the imports-sorted branch December 17, 2020 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants