This still needs probably more tests and additional docs, but I wanted to see if the approach for the implementation makes sense.
Closes #7097
I am not sure yet on how to go about testing this, any suggestions are appreciated :).
I always thought test_elixir was broken as from the directory
structure I'd have expected it to only run the tests in elixir
e.g. the standard library which is what I mostly touch around
here :) However, it always ran almost everythin…
🎉
(wasn't available on Travis immediately but it is now :) )
Read the docs and thought it'd be nice to have usage examples
right there so why not make it doc tests :)
It's a bit repetetive as you always need to start the agent and
I figured even for start/start_link it'd be nice to show that
…
The documentation for the File.dir?/1 function didn't explicitly
state that certain shell conventions (like ~) would not be
automatically expanded in this function, so I'm adding more
clear documentation including examples for how…
We do this for maps for example, maybe it's worth doing for keywords as well. Not sure this is the best place since {:ok, foo: :bar} is allowed as well, but I think it's a good start anyways :)
I think it was pretty cryptic how to use the Collectable protocol, so I added a couple of examples in the style of what we do in the Enumerable protocol. Let me know what you think!
reduce/3 has clauses specialized for various enumerable types, so should be
much faster than the general Enumerable.reduce/3 case, especially that we don't
need additional facilities like terminating the reduction early.
Comparing 3…
Hello!
This caught me out today. I thought it would be good to document this caveat :)
Thanks,
Louis
It's an important information, that makes the concerned functions much more
useful in contexts where synchronous termination is important, such as cleaning
up related processes in tests.
Clarify that :transient supervisor will not be restarted when reaches max_restart_intensity because of :shutdown exit reason.
It would be nice to have someone who will proofread changes :).
Not really sure if this is a feasible solution for https://github.com/elixir-lang/elixir/issues/5538, but at least it appears to be a working solution so I figured a PR wouldn't hurt 😄
I wonder, could this veeery simple change be a solution for #5529? 🤔 :)
What I did:
describe/2 blocks to organize tests a bit moreI am not sure how much these type of PR is appreciated, I think it's good to have organized tests…
I took a stab at #5527 but I am definitely not sure this is the way to go, would love opinions on this as I'm sure I will learn something out of it :).
Btw, it doesn't work for fn (...) do ... end, but it should still be a worthy im…
I am not sure about a couple things, I will leave comments under those :)