Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Sep 3, 2023
1 parent dd064d6 commit a04fdc2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/sequence_validator/sequence_validator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class SequenceValidator {
var completer = _endValidator = Completer<bool>();
Future<void>.delayed(const Duration(milliseconds: _smallDiff))
.then((_) {
if (completer.isCompleted == false) {
if (completer.isCompleted) {
completer.complete(true);
}
});
Expand Down
19 changes: 19 additions & 0 deletions app_csv/test/app_csv_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:convert';
import 'dart:typed_data';

import 'package:csv/csv.dart';
import 'package:csv/csv_settings_autodetection.dart';
import 'package:tekartik_app_csv/app_csv.dart';
import 'package:test/test.dart';

Expand Down Expand Up @@ -178,6 +179,24 @@ int,double,String,bool,Uint8List
{'a': 1, 'b': 2}
]);
});
test('test_quotes', () async {
var csv =
'''Id question,Question FR,Question EN,Resp.A. FR,Resp.A. EN,Resp.B. FR,Resp.B. EN,Resp.C. FR,Resp.C EN,Bonne réponse
2,Quel joueur détient le record du nombre d'essais marqués en Coupe du monde de rugby ?,Which player holds the record for the most tries scored in the Rugby World Cup?,Bryan Habana,Bryan Habana,Jonah Lomu,Jonah Lomu,Jonny Wilkinson,Jonny Wilkinson,B
4,Dans quel pays se déroule traditionnellement le tournoi des Tri-Nations ?,In which country is the Tri-Nations tournament traditionally held?,"Australie, Nouvelle-Zélande, Afrique du Sud","Australia, New Zealand, South Africa","Angleterre, Ecosse, Pays de Galles","England, Scotland, Wales","Irlande, France, Italie","Ireland, France, Italy",A
5,Quel est le poste d’Antoine Dupont en équipe de France ?,What is Antoine Dupont’s position in the French team?,Centre,Center,Troisième ligne aile,Third line wing,Demi de mêlée,Scrum-half,C
''';
var converter = CsvToListConverter(
csvSettingsDetector: FirstOccurrenceSettingsDetector(eols: [
'\r\n',
'\n'
], textDelimiters: [
'"',
]));
expect(csvToMapList(csv, converter: converter), [
{'a': 1, 'b': '2,3'}
]);
});
test('separator', () {
expect(
mapListToCsv([
Expand Down
2 changes: 2 additions & 0 deletions app_sembast/lib/src/sembast.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// Define [getDatabaseFactory] for a common support on Flutter and Flutter Web
library;

export 'sembast_stub.dart'
if (dart.library.html) 'sembast_web.dart'
if (dart.library.io) 'sembast_io.dart';
2 changes: 2 additions & 0 deletions app_sembast/lib/unique_index.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// Sembast database unique index implementation example.
library;

export 'src/unique_index.dart'
show
IndexRef,
Expand Down

0 comments on commit a04fdc2

Please sign in to comment.