Skip to content

weird answer for process koan about message queue #275

@EB-Plum

Description

@EB-Plum

koan "Received messages are queued, first in first out" do
send(self(), "hola!")
send(self(), "como se llama?")
assert_receive ___
assert_receive ___
end

# lib/koans/15_processes.ex. line 62
koan "Received messages are queued, first in first out" do
    send(self(), "hola!")
    send(self(), "como se llama?")
    send(self(), "1")
    send(self(), "2")
    send(self(), "3")

    assert_receive "1"
    assert_receive "3"
    assert_receive "como se llama?"
    assert_receive "hola!"
    assert_receive "2"
  end

i tried wrong answer(?), but somehow it passed.
is this just my fault? or assert_receive acting weird?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions