Hello,

Please provide a new refute_raise() assertion in ExUnit so that I can assert
that no exception was raised when a given function is called. 

At present, the lack of refute_raise() makes some of my test cases look 
weird
because they just call a function and don't explicitly assert anything:

    ## a normal looking test case ##
    test "should raise when floating point number is given" do
      assert_raise ArgumentError, fn ->
        MyModule.my_func(123.456)
      end
    end

    ## a weird looking test case ##
    test "should not raise any error when integer is given" do
      MyModule.my_func(123) # <== looks weird; what is this asserting?
    end

This is also similar in principle to the existing refute_receive() 
assertion.

Thanks for your consideration.

-- 
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/76a47183-e664-4920-8e81-a787b232b8f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to