Skip to content

Commit

Permalink
Workaround for failed tests in i686
Browse files Browse the repository at this point in the history
I wish one day we just drop all i686 executables as more and more
upstream projects did already.

Signed-off-by: Peter Lemenkov <[email protected]>
  • Loading branch information
lemenkov committed Jan 21, 2024
1 parent 38ddc98 commit 820f3b5
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions lib/iex/test/iex/helpers_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -332,22 +332,6 @@ defmodule IEx.HelpersTest do
assert help =~ "Welcome to Interactive Elixir"
end

test "prints Erlang module documentation" do
captured = capture_io(fn -> h(:timer) end)
assert captured =~ "This module provides useful functions related to time."
end

test "prints Erlang module function specs" do
captured = capture_io(fn -> h(:timer.sleep() / 1) end)
assert captured =~ ":timer.sleep/1"
assert captured =~ "-spec sleep(Time) -> ok when Time :: timeout()."
end

test "handles non-existing Erlang module function" do
captured = capture_io(fn -> h(:timer.baz() / 1) end)
assert captured =~ "No documentation for :timer.baz was found"
end

test "prints module documentation" do
assert "\n IEx.Helpers\n\nWelcome to Interactive Elixir" <>
_ = capture_io(fn -> h(IEx.Helpers) end)
Expand Down Expand Up @@ -1008,22 +992,6 @@ defmodule IEx.HelpersTest do
cleanup_modules([TypeSample])
end

test "prints all types in erlang module" do
captured = capture_io(fn -> t(:queue) end)
assert captured =~ "-type queue() :: queue(_)"
assert captured =~ "-opaque queue(Item)"
end

test "prints single type from erlang module" do
captured = capture_io(fn -> t(:erlang.iovec()) end)
assert captured =~ "-type iovec() :: [binary()]"
assert captured =~ "A list of binaries."

captured = capture_io(fn -> t(:erlang.iovec() / 0) end)
assert captured =~ "-type iovec() :: [binary()]"
assert captured =~ "A list of binaries."
end

test "handles non-existing types from erlang module" do
captured = capture_io(fn -> t(:erlang.foo()) end)
assert captured =~ "No type information for :erlang.foo was found or :erlang.foo is private"
Expand Down

0 comments on commit 820f3b5

Please sign in to comment.