Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daegalus committed Jul 29, 2024
1 parent 783ec98 commit 991218c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/uuid_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
Expand Down Expand Up @@ -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));
});
}
});
Expand All @@ -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<RangeError>()));
});
Expand Down

0 comments on commit 991218c

Please sign in to comment.