fbexpect
fbexpect copied to clipboard
A Hack library for writing unit tests expressively
fixes #30 fixes #37 Fixes: - Fixes Ci - `->toHaveSameContents()` for unorderable sequences - Adds `->toBeOfType()`
`->toHaveType()` takes magic strings like numeric. This can not be supported as a reified generic, so it is not a replacement perse. This would subsume `->toBeInstanceOf()`, but again, it is...
This is now a duplicate of `toBeEqual` The old `toBeEqual` is now `toBePHPEqual` refs hhvm/hsl-experimental#176
```HACK expect(vec[dict[], dict[]])->toHaveSameContentAs(vec[]); ``` ``` Cannot use relational comparison operators (=, ) to compare dicts /path/to/SomeTest.php:24 21| ... 22| ... 23| ... 24> expect(vec[dict[], dict[]])->toHaveSameContentAs(vec[]); ```