I need to check that one line contains many substrings. Next works
string should include ("seven") string should include ("eight") string should include ("nine")
but it takes three almost duplicated lines. I'm looking for something like
string should contain allOf ("seven", "eight", "nine")
however, this will not work ... The statement just fails, while the string contains these substrings for sure.
How can I execute such a statement on one line?
string scala matcher scalatest
Michal kordas
source share