Skip to content

Commit

Permalink
Merge 5c06058 into 32ac88d
Browse files Browse the repository at this point in the history
  • Loading branch information
desistefanova committed Mar 25, 2022
2 parents 32ac88d + 5c06058 commit bb14b75
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 1 addition & 2 deletions test/configuration_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,10 @@ Future<void> main([List<String>? args]) async {
expect(() => Realm(config), throws<RealmException>("Realm at path '${config.path}' already opened with different read permissions"));
realm.close();
});

test('Configuration - FIFO files fallback path', () {
Configuration config = Configuration([Car.schema], fifoFilesFallbackPath: "./fifo_folder");
var realm = Realm(config);
realm.close();
});

}
11 changes: 11 additions & 0 deletions test/results_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,17 @@ Future<void> main([List<String>? args]) async {
realm.close();
});

test('Results requested wrong index throws', () {
var config = Configuration([Car.schema]);
var realm = Realm(config);

final cars = realm.all<Car>();

expect(() => cars[0], throws<RealmException>("Requested index 0 in empty Results"));

realm.close();
});

test('Results iteration test', () {
var config = Configuration([Team.schema, Person.schema]);
var realm = Realm(config);
Expand Down

0 comments on commit bb14b75

Please sign in to comment.