Skip to content

Test lexer on tokens directly instead of string representations#8

Closed
ujaandas wants to merge 27 commits intomainfrom
refactor/lang/tests-destringification
Closed

Test lexer on tokens directly instead of string representations#8
ujaandas wants to merge 27 commits intomainfrom
refactor/lang/tests-destringification

Conversation

@ujaandas
Copy link
Copy Markdown
Owner

Previously, lexer tests used a helper stringify method and compared the toString()'d tokens. This was (obviously) very brittle. Now, we just check the tokens directly, after having overloaded an == operator in the Token class.

@ujaandas ujaandas closed this Apr 22, 2026
@ujaandas ujaandas deleted the refactor/lang/tests-destringification branch April 22, 2026 19:14
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