Skip to content

Commit d4b9901

Browse files
committed
Fix Token test for Elixir 1.18
1 parent c09f912 commit d4b9901

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/credo/code/token_test.exs

+3-3
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ defmodule Credo.Code.TokenTest do
224224
assert @heredoc_interpolations_position == position
225225
end
226226

227-
if Version.match?(System.version(), ">= 1.13.0") do
228-
@kw_identifier_token {:kw_identifier, {1, 3, nil}, :"some-atom-with-quotes"}
227+
if Version.match?(System.version(), ">= 1.18.0-rc.0") do
228+
@kw_identifier_token {:kw_identifier, {1, 3, 34}, :"some-atom-with-quotes"}
229229
else
230-
@kw_identifier_token {:kw_identifier_unsafe, {1, 3, nil}, ["some-atom-with-quotes"]}
230+
@kw_identifier_token {:kw_identifier, {1, 3, nil}, :"some-atom-with-quotes"}
231231
end
232232

233233
@tag needs_elixir: "1.7.0"

0 commit comments

Comments
 (0)