Skip to content

Commit

Permalink
Updated test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFreezed committed Jun 23, 2022
1 parent e21d228 commit 111a6f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ v2.3 (2022-06-23)
- Added utility functions: findDeclaredNames(), findGlobalReferences(), findShadows().
- Added token functions: updateToken(), cloneToken().
- simplify() handles some more cases.
- Fixed newToken("string", ...) always raising an error.
- Fixed newToken("string") always raising an error.

v2.2 (2022-06-02)
- Added function: isStatement().
Expand Down
2 changes: 1 addition & 1 deletion testsuite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ test("Tokens", function()

-- Update all tokens (with no modifications).
for _, tok in ipairs(tokens) do
parser.updateToken(tok, tok.value)
parser.updateToken(parser.cloneToken(tok), tok.value)
end

local ast = assert(parser.parse(tokens))
Expand Down

0 comments on commit 111a6f5

Please sign in to comment.