I am using ava testingUnit and I want to know how to check if the value i receive is within a specific range. For example, I have a method that shuffles an array and picks an item from that array randomly. Let's consider that example,
the method might return
[4,5,1] OR [4,5,2] OR [4,5,3]
In other words, I would like to know how to check if the value i receive from that method is either on eof the following values:
[4,5,1] OR [4,5,2] OR [4,5,3]
What I want to do do is, to check if the the returned value is either one of the aforementioned values??
Thanks