Skip to content

Commit

Permalink
Make descriptions into comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
lrhn committed Nov 12, 2024
1 parent c01a6d0 commit d7ea6ff
Show file tree
Hide file tree
Showing 6 changed files with 19,252 additions and 1,737 deletions.
10 changes: 5 additions & 5 deletions pkgs/characters/test/breaks_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const verbose = false;
void main() {
// Test [Breaks] on all the available Unicode tests.
group("forward automaton:", () {
for (var (expectedParts, _) in splitTests) {
for (var expectedParts in splitTests) {
for (var (variantParts, kind) in testVariants(expectedParts)) {
test(testDescription(variantParts) + kind, () {
var input = variantParts.join("");
Expand All @@ -40,7 +40,7 @@ void main() {

// Test [BackBreaks] directly on all the available Unicode tests.
group("backward automaton:", () {
for (var (expectedParts, _) in splitTests) {
for (var expectedParts in splitTests) {
for (var (variantParts, kind) in testVariants(expectedParts)) {
test(testDescription(variantParts) + kind, () {
var input = variantParts.join("");
Expand All @@ -64,7 +64,7 @@ void main() {
// the Unicode tests.
group("nextBreak", () {
// Should find the next break at any position.
for (var (expectedParts, _) in splitTests) {
for (var expectedParts in splitTests) {
for (var (variantParts, kind) in testVariants(expectedParts)) {
test(testDescription(variantParts) + kind, () {
var input = variantParts.join("");
Expand All @@ -90,7 +90,7 @@ void main() {
// the Unicode tests.
group("previousBreak", () {
// Should find the next break at any position.
for (var (expectedParts, _) in splitTests) {
for (var expectedParts in splitTests) {
for (var (variantParts, kind) in testVariants(expectedParts)) {
test(testDescription(variantParts) + kind, () {
var input = variantParts.join("");
Expand Down Expand Up @@ -119,7 +119,7 @@ void main() {
// the Unicode tests.
group("isGraphemeClusterBreak", () {
// Should find the next break at any position.
for (var (expectedParts, _) in splitTests) {
for (var expectedParts in splitTests) {
for (var (variantParts, kind) in testVariants(expectedParts)) {
test(testDescription(variantParts) + kind, () {
var input = variantParts.join("");
Expand Down
4 changes: 2 additions & 2 deletions pkgs/characters/test/characters_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,15 @@ void tests() {
});

group("Unicode test", () {
for (var (gcs, _) in splitTests) {
for (var gcs in splitTests) {
test("[${testDescription(gcs)}]", () {
expectGC(gc(gcs.join()), gcs);
});
}
});

group("Emoji test", () {
for (var (gcs, _) in emojis) {
for (var gcs in emojis) {
test("[${testDescription(gcs)}]", () {
expectGC(gc(gcs.join()), gcs);
});
Expand Down
Loading

0 comments on commit d7ea6ff

Please sign in to comment.