Skip to content

Commit

Permalink
Fix dialyxir reported issues (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira authored Jun 16, 2023
1 parent 15dc58d commit ae840c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
otp: 24.2
lint: lint
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.pair.otp}}
elixir-version: ${{matrix.pair.elixir}}

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: |
deps
Expand Down
9 changes: 6 additions & 3 deletions test/nimble_parsec_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -735,12 +735,14 @@ defmodule NimbleParsecTest do

test "aborts times" do
assert lookahead_with_times("a") ==
{:error, "expected ASCII character in the range \"0\" to \"9\"", "", %{}, {1, 0}, 1}
{:error, "expected ASCII character in the range \"0\" to \"9\"", "", %{}, {1, 0},
1}

assert lookahead_with_times("a0") == {:ok, 'a', "0", %{}, {1, 0}, 1}

assert lookahead_with_times("aa0") ==
{:error, "expected ASCII character in the range \"0\" to \"9\"", "a0", %{}, {1, 0}, 1}
{:error, "expected ASCII character in the range \"0\" to \"9\"", "a0", %{}, {1, 0},
1}
end
end

Expand Down Expand Up @@ -1449,7 +1451,8 @@ defmodule NimbleParsecTest do

test "never succeeds on bad eos" do
assert bad_eos("a") ==
{:error, "expected ASCII character in the range \"a\" to \"z\"", "", %{}, {1, 0}, 1}
{:error, "expected ASCII character in the range \"a\" to \"z\"", "", %{}, {1, 0},
1}

assert bad_eos("aa") ==
{:error,
Expand Down

0 comments on commit ae840c8

Please sign in to comment.