I will submit a PR then On Mon, 29 May 2017 06:34:20 +0000 José Valim <jose.va...@plataformatec.com.br> wrote:
> Yes, I would say that it is incomplete. > > On Mon, May 29, 2017 at 02:55 eksperimental <eksperimen...@autistici.org> > wrote: > > > Working in the latests addition to doctests let me found this bug, > > This is an actual test, > > > > defmodule ExUnit.DocTestTest.Incomplete do > > @doc ~S''' > > iex> 1 + 2 > > > > ''' > > def test_fun, do: :ok > > end > > > > it fails because there is nothing to evaluate against at the end of the > > doctest, > > But I see that we have the assumption that all the tests finish in a new > > lines (because we use the > > HEREDOC comments and they always end in a new line). > > > > but the following code will compile, when it shouldn't > > > > defmodule ExUnit.DocTestTest.Incomplete do > > @doc " > > iex> 1 + 2" > > def test_fun, do: :ok > > end > > > > > > Correct me if I'm wrong. > > > > -- > > You received this message because you are subscribed to the Google Groups > > "elixir-lang-core" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to elixir-lang-core+unsubscr...@googlegroups.com. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/elixir-lang-core/20170529075502.11c3bced.eksperimental%40autistici.org > > . > > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/20170529212558.5b662b87.eksperimental%40autistici.org. For more options, visit https://groups.google.com/d/optout.