Skip to content

Commit

Permalink
Fix dynamic tests regression
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Mar 7, 2024
1 parent 995d793 commit 98659c2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/realm_dart/test/dynamic_realm_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

// ignore_for_file: avoid_relative_lib_imports

import 'dart:ffi';
import 'dart:typed_data';

import 'package:test/test.dart' hide test, throws;
import 'package:realm_dart/realm.dart';

Expand Down Expand Up @@ -72,7 +75,7 @@ void main() {
final objectId = ObjectId();
final uuid = Uuid.v4();

AllTypes _getPopulatedAllTypes() => AllTypes('abc', true, date, -123.456, objectId, uuid, -987, Decimal128.fromDouble(42),
AllTypes _getPopulatedAllTypes() => AllTypes('abc', true, date, -123.456, objectId, uuid, -987, Decimal128.fromDouble(42), Uint8List.fromList([1, 2, 3]),
nullableStringProp: 'def',
nullableBoolProp: true,
nullableDateProp: date,
Expand All @@ -82,7 +85,7 @@ void main() {
nullableIntProp: 123,
nullableDecimalProp: Decimal128.fromDouble(4242));

AllTypes _getEmptyAllTypes() => AllTypes('', false, DateTime(0).toUtc(), 0, objectId, uuid, 0, Decimal128.zero);
AllTypes _getEmptyAllTypes() => AllTypes('', false, DateTime(0).toUtc(), 0, objectId, uuid, 0, Decimal128.zero, Uint8List(16));

AllCollections _getPopulatedAllCollections() => AllCollections(
stringList: ['abc', 'def'],
Expand Down

0 comments on commit 98659c2

Please sign in to comment.