Skip to content

Commit

Permalink
feat: update the test numbers within test-mixer foreach loops
Browse files Browse the repository at this point in the history
  • Loading branch information
revelt committed Nov 20, 2022
1 parent a759732 commit 5905781
Show file tree
Hide file tree
Showing 35 changed files with 664 additions and 64 deletions.
377 changes: 317 additions & 60 deletions packages/eslint-plugin-test-num-tbc/src/correct-test-num.ts

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/15-in.zz
@@ -0,0 +1,9 @@
test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "09.02");
});
});
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/15-out.zz
@@ -0,0 +1,9 @@
test(`01 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "01.01");
});
});
@@ -0,0 +1 @@
[]
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/16-in.zz
@@ -0,0 +1,9 @@
test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "09.${pad(n)}");
});
});
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/16-out.zz
@@ -0,0 +1,9 @@
test(`01 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "01.${pad(n)}");
});
});
@@ -0,0 +1 @@
[]
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/17-in.zz
@@ -0,0 +1,9 @@
test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "a");
});
});
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/17-out.zz
@@ -0,0 +1,9 @@
test(`01 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "a");
});
});
@@ -0,0 +1 @@
[]
35 changes: 35 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/18-in.zz
@@ -0,0 +1,35 @@
test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "9");
equal(convertOne(``, opt), [[4, 5, "’"]], '9');
equal(convertOne(``, opt), [[4, 5, "’"]], `9`);
});
});

test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "9");
equal(convertOne(``, opt), [[4, 5, "’"]], '9');
equal(convertOne(``, opt), [[4, 5, "’"]], `9`);
});
});

test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "9");
equal(convertOne(``, opt), [[4, 5, "’"]], '9');
equal(convertOne(``, opt), [[4, 5, "’"]], `9`);
});
});
35 changes: 35 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/18-out.zz
@@ -0,0 +1,35 @@
test(`01 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "01.01");
equal(convertOne(``, opt), [[4, 5, "’"]], '01.02');
equal(convertOne(``, opt), [[4, 5, "’"]], `01.03`);
});
});

test(`02 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "02.01");
equal(convertOne(``, opt), [[4, 5, "’"]], '02.02');
equal(convertOne(``, opt), [[4, 5, "’"]], `02.03`);
});
});

test(`03 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "03.01");
equal(convertOne(``, opt), [[4, 5, "’"]], '03.02');
equal(convertOne(``, opt), [[4, 5, "’"]], `03.03`);
});
});
@@ -0,0 +1 @@
[]
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/19-in.zz
@@ -0,0 +1,9 @@
test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "#0");
});
});
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/19-out.zz
@@ -0,0 +1,9 @@
test(`01 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "#0");
});
});
@@ -0,0 +1 @@
[]
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/20-in.zz
@@ -0,0 +1,9 @@
test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `#${"01"}`);
});
});
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/20-out.zz
@@ -0,0 +1,9 @@
test(`01 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `#${"01"}`);
});
});
@@ -0,0 +1 @@
[]
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/21-in.zz
@@ -0,0 +1,9 @@
test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `09.${pad(n)}`);
});
});
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/21-out.zz
@@ -0,0 +1,9 @@
test(`01 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `01.${pad(n)}`);
});
});
@@ -0,0 +1 @@
[]
19 changes: 19 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/22-in.zz
@@ -0,0 +1,19 @@
test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `09.${pad(n)}`);
});
});

test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `09.${pad(n)}`);
});
});
19 changes: 19 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/22-out.zz
@@ -0,0 +1,19 @@
test(`01 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `01.${pad(n)}`);
});
});

test(`02 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `02.${pad(n)}`);
});
});
@@ -0,0 +1 @@
[]
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/23-in.zz
@@ -0,0 +1,9 @@
test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `09.02`);
});
});
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/23-out.zz
@@ -0,0 +1,9 @@
test(`01 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `01.01`);
});
});
@@ -0,0 +1 @@
[]
29 changes: 29 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/24-in.zz
@@ -0,0 +1,29 @@
test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], '09.${pad(n)}');
});
});

test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `09.${pad(n)}`);
});
});

test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "09.${pad(n)}");
});
});
29 changes: 29 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/24-out.zz
@@ -0,0 +1,29 @@
test(`01 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], '01.${pad(n)}');
});
});

test(`02 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `02.${pad(n)}`);
});
});

test(`03 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], "03.${pad(n)}");
});
});
@@ -0,0 +1 @@
[]
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/25-in.zz
@@ -0,0 +1,9 @@
test(`09 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `${pad(n)}`);
});
});
9 changes: 9 additions & 0 deletions packages/eslint-plugin-test-num-tbc/test/fixtures/25-out.zz
@@ -0,0 +1,9 @@
test(`01 - with entities`, () => {
mixer({
convertDashes: true,
convertEntities: true,
removeWidows: false,
}).forEach((opt, n) => {
equal(convertOne(``, opt), [[4, 5, "’"]], `${pad(n)}`);
});
});
@@ -0,0 +1 @@
[]

0 comments on commit 5905781

Please sign in to comment.