richcarl/eunit — pull request #9 by yfyf (2012-06-22 09:39:40+00:00)
Title: Add ?assertSublist macro.

This change implements an ?assertSublist(A, B) macro which can be
used to check whether A is a sublist of B. Additionally, the first
argument can have 'wildcard' key-values of the form {Key, '_'}.
Order of the lists does not matter, repetition does.

Although the assumptions here might seem a bit odd, I found this macro
to be very useful and suitable while testing. It would probably be a good idea
to test this with PropEr eventually. Please let me know if you think this could be
merged and what could be changed.