From 991218cbbf32ff486c175a61757d41be90aba3e9 Mon Sep 17 00:00:00 2001 From: Yulian Kuncheff Date: Mon, 29 Jul 2024 15:35:41 -0700 Subject: [PATCH] Fix tests --- test/uuid_test.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/uuid_test.dart b/test/uuid_test.dart index f051394..0bb18ab 100644 --- a/test/uuid_test.dart +++ b/test/uuid_test.dart @@ -216,8 +216,8 @@ void main() { group('[Version 5 Tests]', () { test('Using URL namespace and custom name', () { - var u0 = uuid.v5(Namespace.URL.value, 'www.google.com'); - var u1 = uuid.v5(Namespace.URL.value, 'www.google.com'); + var u0 = uuid.v5(Namespace.url.value, 'www.google.com'); + var u1 = uuid.v5(Namespace.url.value, 'www.google.com'); expect(u0, equals(u1)); }); @@ -439,11 +439,11 @@ void main() { 'offset 16 bytes before the end': size - 16, }.entries) { test(testCase.key, () { - final v = Uuid.parse(Namespace.OID.value, + final v = Uuid.parse(Namespace.oid.value, buffer: buffer, offset: testCase.value); expect(Uuid.unparse(v, offset: testCase.value), - equals(Namespace.OID.value)); + equals(Namespace.oid.value)); }); } }); @@ -457,7 +457,7 @@ void main() { }.entries) { test(testCase.key, () { expect( - () => Uuid.parse(Namespace.OID.value, + () => Uuid.parse(Namespace.oid.value, buffer: buffer, offset: testCase.value), throwsA(isA())); });