Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dart to executors #65

Merged
merged 21 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Switch to published package from git
  • Loading branch information
mosuem committed Jul 14, 2023
commit 7b9e78a305cdadc7feb082302de92fd6c7f7e68f
10 changes: 6 additions & 4 deletions executors/dart_native/bin/executor.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:convert';
import 'dart:io';
import 'package:intl4x/collation.dart';
import 'package:intl4x/intl4x.dart';

Map<String, List<String>> supportedTests = {
Expand Down Expand Up @@ -69,10 +70,11 @@ void main() {
}

bool testCollator(Map<String, dynamic> decoded) {
var compared = Intl().collation.compare(
decoded['string1'],
decoded['string2'],
);
var compared =
Intl().collation(CollationOptions(ignorePunctuation: true)).compare(
decoded['string1'],
decoded['string2'],
);
var result = compared <= 0 ? true : false;
return result;
}
Expand Down
6 changes: 1 addition & 5 deletions executors/dart_native/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ environment:

# Add regular dependencies here.
dependencies:
intl4x:
git:
url: https://github.com/dart-lang/i18n.git
path: pkgs/intl4x/
ref: addIntl4x
intl4x: ^0.1.0

dev_dependencies:
build_runner: ^2.4.4
Expand Down
6 changes: 1 addition & 5 deletions executors/dart_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ environment:

# Add regular dependencies here.
dependencies:
intl4x:
git:
url: https://github.com/dart-lang/i18n.git
path: pkgs/intl4x/
ref: addIntl4xCollator
intl4x: ^0.1.0

dev_dependencies:
lints: ^2.0.0
Expand Down