Skip to content

Commit

Permalink
Add tests and update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
fkleon committed Apr 15, 2024
1 parent 2c53ec8 commit 0c3f79c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Add support for parsing variables containing digits (thanks [alexander-zubkov](https://github.com/alexander-zubkov))
- Drop support for Dart SDK versions below 3.0.0
- Switch from pedantic to the [official Dart lint rules](https://pub.dev/packages/lints)

Expand Down
4 changes: 3 additions & 1 deletion test/lexer_test_set.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ class LexerTests extends TestSet {
' x': [Token('x', TokenType.VAR)],
'y': [Token('y', TokenType.VAR)],
'(y )': [Token('y', TokenType.VAR)],
//'var2': [Token('var2', TokenType.VAR)], // Does not support numbers in variable names
'var2': [Token('var2', TokenType.VAR)],
'va2r': [Token('va2r', TokenType.VAR)],
'\$s2': [Token('\$s2', TokenType.VAR)],
'longname': [Token('longname', TokenType.VAR)],
};
parameterizedRpn(cases);
Expand Down
4 changes: 3 additions & 1 deletion test/parser_test_set.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ class ParserTests extends TestSet {
'x': Variable('x'),
' x': Variable('x'),
'(y )': Variable('y'),
//'var2': Variable('var2'), // Does not support numbers in variable names
'var2': Variable('var2'),
'va2r': Variable('va2r'),
'\$s2': Variable('\$s2'),
'longname': Variable('longname'),
};
parameterized(cases);
Expand Down

0 comments on commit 0c3f79c

Please sign in to comment.