FWIW, when I need to test messages today I use `receive` in doctests as well.

On May 8, 2017, 6:35 PM +0200, eksperimental <[email protected]>, 
wrote:
> I see your point. But I think it would simplify things if what's available in 
> IEx is available
> in doctests, since that's the environment it is supposed to be running in.
>
> On Mon, 8 May 2017 18:28:32 +0200
> José Valim <[email protected]> wrote:
>
> > Then you can use the File API to do exactly that. Such as File.ls! and
> > File.cwd!.
> >
> >
> >
> > *José Valim*
> > www.plataformatec.com.br
> > Skype: jv.ptec
> > Founder and Director of R&D
> >
> > On Mon, May 8, 2017 at 6:26 PM, eksperimental <[email protected]
> > wrote:
> >
> > > They could be useful for doctests such when dealing with file and dirs
> > > creation and removal,
> > > you cd/1 a dir, and then mkdir_p, and `touch` a file and `ls` the contents
> > > of the specific dir,
> > >
> > >
> > >
> > > On Mon, 8 May 2017 18:17:33 +0200
> > > José Valim <[email protected]> wrote:
> > >
> > > > pwd and ls are not going to be effective in doctests as the results will
> > > be
> > > > highly dependent of the user directory and what is on their machine.
> > > >
> > > >
> > > >
> > > > *José Valim*
> > > > www.plataformatec.com.br
> > > > Skype: jv.ptec
> > > > Founder and Director of R&D
> > > >
> > > > On Mon, May 8, 2017 at 5:16 PM, eksperimental <
> > > [email protected]
> > > > wrote:
> > > >
> > > > > José Valim <[email protected]> wrote:
> > > > > > We should support regular comments (a-I). We should not support
> > > (a-II)
> > > > > and
> > > > > > (a-III) because they are not valid in IEx.
> > > > >
> > > > > How come, since they are all treated as comments by IEx.
> > > > >
> > > > > --
> > > > > 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/20170508221600.66851fc4.
> > > > > 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 [email protected].
> > > To view this discussion on the web visit https://groups.google.com/d/
> > > msgid/elixir-lang-core/20170508232653.0388c5f1.
> > > 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elixir-lang-core/20170508233503.5b997d54.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/b3d345ab-ab0b-4024-9ef3-1192ef00d7b2%40Spark.
For more options, visit https://groups.google.com/d/optout.

Reply via email to