File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2700,7 +2700,7 @@ defmodule Macro do
27002700 :ok
27012701 end
27022702
2703- prelude = quote do: options = unquote ( Macro . escape ( options ) )
2703+ prelude = quote do: options = unquote ( options )
27042704 acc = { prelude , dbg_format_header ( env ) }
27052705
27062706 { acc , nil } =
Original file line number Diff line number Diff line change @@ -1484,6 +1484,11 @@ defmodule KernelTest do
14841484 assert output =~ "3"
14851485 end
14861486
1487+ test "prints the given expression with complex options" do
1488+ output = capture_io ( fn -> assert dbg ( 123 , [ ] ++ [ ] ) == 123 end )
1489+ assert output =~ "kernel_test.exs"
1490+ end
1491+
14871492 test "doesn't print any colors if :syntax_colors is []" do
14881493 output =
14891494 capture_io ( fn ->
You can’t perform that action at this time.
0 commit comments