bgarrels / hamcrest

Automatically exported from code.google.com/p/hamcrest
0 stars 0 forks source link

hasEntry() description should limit to single value when key is present #161

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When the key is found in the array, the description should contain the single 
mismatched value rather than the full array.

Instead of

Expected: array containing ["make" => "ford"]
     but: array was ["make" => "toyota", "model" => "prius", "year" => "2011", "style" => "5dr-hb-ii-se"]

use

     but: array["make"] was "toyota"

or

     but: was array containing ["make" => "toyota"]

Original issue reported on code.google.com by dharkn...@gmail.com on 30 Aug 2011 at 11:14