mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
fix: max UUID should be variant 7, nil UUID should be variant 0
This commit is contained in:
@@ -380,7 +380,7 @@ class ExpectedBehaviorTest extends TestCase
|
||||
public function provideFromStringInteger()
|
||||
{
|
||||
return [
|
||||
['00000000-0000-0000-0000-000000000000', null, 2, '0'],
|
||||
['00000000-0000-0000-0000-000000000000', null, 0, '0'],
|
||||
['ff6f8cb0-c57d-11e1-8b21-0800200c9a66', 1, 2, '339532337419071774304650190139318639206'],
|
||||
['ff6f8cb0-c57d-11e1-9b21-0800200c9a66', 1, 2, '339532337419071774305803111643925486182'],
|
||||
['ff6f8cb0-c57d-11e1-ab21-0800200c9a66', 1, 2, '339532337419071774306956033148532333158'],
|
||||
@@ -413,7 +413,7 @@ class ExpectedBehaviorTest extends TestCase
|
||||
['ff6f8cb0-c57d-01e1-db21-0800200c9a66', null, 6, '339532337419071698752551071748029454950'],
|
||||
['ff6f8cb0-c57d-01e1-eb21-0800200c9a66', null, 7, '339532337419071698753703993252636301926'],
|
||||
['ff6f8cb0-c57d-01e1-fb21-0800200c9a66', null, 7, '339532337419071698754856914757243148902'],
|
||||
['ffffffff-ffff-ffff-ffff-ffffffffffff', null, 2, '340282366920938463463374607431768211455'],
|
||||
['ffffffff-ffff-ffff-ffff-ffffffffffff', null, 7, '340282366920938463463374607431768211455'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user