Skip to content

Commit 9e55614

Browse files
committed
Add argument to drop dylib testcase
1 parent 14a856c commit 9e55614

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkgs/native_assets_builder/test_data/drop_dylib_link/bin/drop_dylib_link.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
import 'package:drop_dylib_link/drop_dylib_link.dart';
66

77
void main(List<String> arguments) {
8-
print('Hello world: ${MyMath.add(3, 4)}!');
8+
if (arguments.first == 'add') {
9+
print('Hello world: ${MyMath.add(3, 4)}!');
10+
} else if (arguments.first == 'multiply') {
11+
print('Hello world: ${MyMath.multiply(3, 4)}!');
12+
} else {
13+
throw ArgumentError('Must pass either "add" or "multiply"');
14+
}
915
}

0 commit comments

Comments
 (0)