We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e64033 commit ed0b161Copy full SHA for ed0b161
lib/iex/test/iex/interaction_test.exs
@@ -5,6 +5,15 @@ defmodule IEx.InteractionTest do
5
6
### basic interaction ###
7
8
+ test "whole output" do
9
+ IEx.Options.set :colors, enabled: false
10
+
11
+ # We're using bare-bones capture_io instead of capture_iex only once here
12
+ assert capture_io("IO.puts \"Hello world\"", fn ->
13
+ IEx.Server.start(IEx.boot_config(dot_iex_path: ""))
14
+ end) =~ %r"^Interactive Elixir \(.+?\) - press Ctrl\+C to exit \(type h\(\) ENTER for help\)\niex\(1\)> Hello world\n:ok\niex\(2\)> $"
15
+ end
16
17
test "empty input" do
18
assert capture_iex("\n") == "nil"
19
end
0 commit comments