Skip to content

Commit

Permalink
Use PID valid for 32-bit systems, followup to elixir-lang#12741
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Lemenkov <[email protected]>
  • Loading branch information
lemenkov committed Jul 27, 2023
1 parent 013e14d commit d8f2aaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/iex/test/iex/helpers_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1364,8 +1364,8 @@ defmodule IEx.HelpersTest do

describe "pid/1,3" do
test "builds a PID from string" do
assert inspect(pid("0.32767.3276")) == "#PID<0.32767.3276>"
assert inspect(pid("0.5.6")) == "#PID<0.5.6>"
assert inspect(pid("0.32767.0")) == "#PID<0.32767.0>"
assert inspect(pid("0.5.0")) == "#PID<0.5.0>"

assert_raise ArgumentError, fn ->
pid("0.6.-6")
Expand All @@ -1381,8 +1381,8 @@ defmodule IEx.HelpersTest do
end

test "builds a PID from integers" do
assert inspect(pid(0, 32767, 3276)) == "#PID<0.32767.3276>"
assert inspect(pid(0, 5, 6)) == "#PID<0.5.6>"
assert inspect(pid(0, 32767, 0)) == "#PID<0.32767.0>"
assert inspect(pid(0, 5, 0)) == "#PID<0.5.0>"

assert_raise FunctionClauseError, fn ->
pid(0, 6, -6)
Expand Down

0 comments on commit d8f2aaf

Please sign in to comment.