Yes, I would say that it is incomplete.

On Mon, May 29, 2017 at 02:55 eksperimental <[email protected]>
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 [email protected].
> 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.
>
-- 


*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4JD%3D0qbg2rH9MxhyS2JXByY5LTSFut0oAvmSRdnW2iBtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to