Skip to content
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

Reform Lexer Tests #498

Merged
merged 3 commits into from
Oct 18, 2019
Merged

Reform Lexer Tests #498

merged 3 commits into from
Oct 18, 2019

Conversation

casey
Copy link
Owner

@casey casey commented Oct 18, 2019

  • Refactor the lexer tests to be more readable, abandoning the previous string-based summary DSL in favor of a more obvious sequence of TokenKinds with optional lexemes. The new tests also test that token lexemes are correct.

  • Move duplicated unindent function into a shared crate, test-utilities. This new versionless dev-dependency will prevent publishing to crates.io, at least until Allow publishing with dev-dependencies without a version. rust-lang/cargo#7333 makes it into stable. If we publish a new version before then, test-utilities will need to be published to crates.io, so we can depend on it by version.

@casey casey merged commit 49ab423 into master Oct 18, 2019
@casey casey deleted the test-format branch October 18, 2019 03:04
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.

1 participant