Re: [elixir-core:8388] [Proporsal] Add argument "count times" to assert_receive

2018-12-06 Thread Sven Gehring
Hi, Assuming you want to receive the same message, wouldn't this only be slightly shorter than using ``` for _ <- 1..3, do: assert_receive({"msg", _}) ``` - Sven On Thu, 6 Dec 2018 at 14:25 Anastasiya Dyachenko wrote: > Hi, > In tests often face with need to write code like > ``` >

[elixir-core:8388] [Proporsal] Add argument "count times" to assert_receive

2018-12-06 Thread Anastasiya Dyachenko
Hi, In tests often face with need to write code like ``` assert_receive {"msg", _} assert_receive {"msg", _} assert_receive {"msg", _} ``` where same messages or same matching messages expected to receive multiple times. It would be match better to have ability to set number of times message