fix: max UUID should be variant 7, nil UUID should be variant 0

This commit is contained in:
Ben Ramsey
2025-05-31 20:07:13 -05:00
parent fe83f84089
commit b21cb6d655
7 changed files with 25 additions and 26 deletions
+2 -2
View File
@@ -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'],
];
}