Homework 0 forum

The Order of Addresses of GetNodes()

 
Picture of Jinyi Xian
The Order of Addresses of GetNodes()
by Jinyi Xian - Thursday, 1 October 2020, 13:07
 

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?

profile
Re: The Order of Addresses of GetNodes()
by Kirill Nikitin - Friday, 2 October 2020, 01:13
 

Hi,

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

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

Kirill

Picture of Jinyi Xian
Re: The Order of Addresses of GetNodes()
by Jinyi Xian - Friday, 2 October 2020, 09:02
 

Thank you very much