The Order of Addresses of GetNodes()

The Order of Addresses of GetNodes()

par Jinyi Xian,
Nombre de réponses : 2

The test expects a certain order of the output. Is it OK for GetNodes() to return a slice with the same addresses but in a different order?

En réponse à Jinyi Xian

Re: The Order of Addresses of GetNodes()

par Kirill Nikitin,

Hi,

Yes, it is ok, our tests will check only for inclusion, not a particular order.

See this thread https://moodlearchive.epfl.ch/2020-2021/mod/forum/discuss.php?d=41968 for an earlier discussion.

Kirill