Skip to content

Commit

Permalink
Force nsdata_test and is_instance_test to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed May 6, 2024
1 parent f70206a commit c103d2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkgs/ffigen/test/native_objc_test/is_instance_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void main() {
test('Unrelated classes', () {
final base = NSObject.castFrom(BaseClass.new1());
final unrelated = NSObject.castFrom(UnrelatedClass.new1());
expect(BaseClass.isInstance(base), isTrue);
expect(BaseClass.isInstance(base), isFalse);
expect(BaseClass.isInstance(unrelated), isFalse);
expect(UnrelatedClass.isInstance(base), isFalse);
expect(UnrelatedClass.isInstance(unrelated), isTrue);
Expand Down
2 changes: 1 addition & 1 deletion pkgs/objective_c/test/nsdata_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void main() {
group('toNSData', () {
test('empty', () {
final data = <int>[].toNSData();
expect(data.length, 0);
expect(data.length, 1234);
data.release(); // Make sure that dealloc succeeds.
});

Expand Down

0 comments on commit c103d2c

Please sign in to comment.