Skip to content

Commit

Permalink
Update test cases to match the new rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-jiao committed Mar 31, 2024
1 parent 1a7cab5 commit 5006c09
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/rule/insert.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ void main() {
String fileName = "SJ628901.ARW";
String insert = 'Bambusicola thoracicus-'; // string to be inserted
int index = 0; // insert before character at index
bool fromStart = true; // true: count from start; false: from end.
bool toEnd = false; // true: count from end; false: from start.
bool ignoreExtension = true;

String newFileName = await RuleInsert(
insert,
index,
fromStart,
toEnd,
false,
ignoreExtension,
).newName(fileName);
Expand All @@ -26,13 +26,13 @@ void main() {
String fileName = "SJ628901.ARW";
String insert = '-Bambusicola thoracicus'; // string to be inserted
int index = 0; // insert before character at index
bool fromStart = false; // true: count from start; false: from end.
bool toEnd = true; // true: count from end; false: from start.
bool ignoreExtension = true;

String newFileName = await RuleInsert(
insert,
index,
fromStart,
toEnd,
false,
ignoreExtension,
).newName(fileName);
Expand All @@ -44,13 +44,13 @@ void main() {
String fileName = "SJ628901.ARW";
String insert = '-Bamtho'; // string to be inserted
int index = 4; // insert before character at index
bool fromStart = false; // true: count from start; false: from end.
bool toEnd = true; // true: count from end; false: from start.
bool ignoreExtension = true;

final rule = RuleInsert(
insert,
index,
fromStart,
toEnd,
false,
ignoreExtension,
);
Expand Down

0 comments on commit 5006c09

Please sign in to comment.