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

Add unit tests for lexer #133

Merged
merged 1 commit into from
Mar 21, 2016
Merged

Add unit tests for lexer #133

merged 1 commit into from
Mar 21, 2016

Conversation

davidzchen
Copy link
Contributor

This change adds unit tests for the lexer.

These tests were transferred from the lexer tests in https://github.com/google/go-jsonnet/blob/master/lexer_test.go.

These changes are made on top of #132, which should be merged first.

@@ -91,14 +94,21 @@ struct StaticError {
: location(location), msg(msg)
{
}

std::string ToString() const
Copy link
Member

Choose a reason for hiding this comment

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

toString is used elsewhere

@sparkprime
Copy link
Member

Otherwise LGTM

These tests were transferred from the lexer tests from
google/go-jsonnet.

Issue google#39
@davidzchen
Copy link
Contributor Author

Rebased and addressed review comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants