Skip to content

Commit

Permalink
Add materiallist matcher
Browse files Browse the repository at this point in the history
Yay for matching lists of things. Should we add lists of other things?
  • Loading branch information
mcmonkey4eva committed Nov 17, 2014
1 parent 2689478 commit c315ef8
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -343,6 +343,9 @@ private void compare_as_strings() {
else if (comparedto.equalsIgnoreCase("material"))
outcome = dMaterial.matches(comparable);

else if (comparedto.equalsIgnoreCase("materiallist"))
outcome = dList.valueOf(comparable).containsObjectsFrom(dMaterial.class);

else if (comparedto.equalsIgnoreCase("script"))
outcome = dScript.matches(comparable);

Expand Down

0 comments on commit c315ef8

Please sign in to comment.