Skip to content

Commit

Permalink
Add more test data
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Leonovich committed May 25, 2016
1 parent f6e717a commit 28dced9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/DataProvider.php
Expand Up @@ -122,6 +122,11 @@ public static function provideData()
public static function provideUnpackData()
{
return array_merge(self::provideData(), [
['8-bit int #4', 0x7f, "\xd0\x7f"],
['16-bit int #4', 0x7fff, "\xd1\x7f\xff"],
['32-bit int #4', 0x7fffffff, "\xd2\x7f\xff\xff\xff"],
['64-bit int #4', 0x7fffffffffffffff, "\xd3"."\x7f\xff\xff\xff"."\xff\xff\xff\xff"],

['32-bit float #1', 0.0, "\xca"."\x00\x00\x00\x00"],
['32-bit float #2', 2.5, "\xca"."\x40\x20\x00\x00"],

Expand Down

0 comments on commit 28dced9

Please sign in to comment.