Skip to content

Commit cacf46f

Browse files
committed
chore(test): Fix typo (#2776)
1 parent 9607f5d commit cacf46f

File tree

1 file changed

+11
-11
lines changed
  • docs/dev-notes/2025-11-01/add_and_refactoring_tests_for_contest_table_provider

1 file changed

+11
-11
lines changed

docs/dev-notes/2025-11-01/add_and_refactoring_tests_for_contest_table_provider/plan.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ task_table_index: 'A06' | 'A77' | 'B07' | 'B63' | 'C09'
7575

7676
```typescript
7777
test('expects to filter tasks to include only tessoku-book contest', () => {
78-
const provider = new TessokuBookProvider(ContestType.TESSOKUBOOK);
78+
const provider = new TessokuBookProvider(ContestType.TESSOKU_BOOK);
7979
const mixedTasks = [
8080
{ contest_id: 'abc123', task_id: 'abc123_a', task_table_index: 'A' },
8181
{ contest_id: 'tessoku-book', task_id: 'tesskoku_book_a', task_table_index: 'A01' },
@@ -99,7 +99,7 @@ test('expects to filter tasks to include only tessoku-book contest', () => {
9999

100100
```typescript
101101
test('expects to get correct metadata', () => {
102-
const provider = new TessokuBookProvider(ContestType.TESSOKUBOOK);
102+
const provider = new TessokuBookProvider(ContestType.TESSOKU_BOOK);
103103
const metadata = provider.getMetadata();
104104

105105
expect(metadata.title).toBe('競技プログラミングの鉄則');
@@ -116,7 +116,7 @@ test('expects to get correct metadata', () => {
116116

117117
```typescript
118118
test('expects to get correct display configuration', () => {
119-
const provider = new TessokuBookProvider(ContestType.TESSOKUBOOK);
119+
const provider = new TessokuBookProvider(ContestType.TESSOKU_BOOK);
120120
const displayConfig = provider.getDisplayConfig();
121121

122122
expect(displayConfig.isShownHeader).toBe(false);
@@ -138,7 +138,7 @@ test('expects to get correct display configuration', () => {
138138

139139
```typescript
140140
test('expects to format contest round label correctly', () => {
141-
const provider = new TessokuBookProvider(ContestType.TESSOKUBOOK);
141+
const provider = new TessokuBookProvider(ContestType.TESSOKU_BOOK);
142142
const label = provider.getContestRoundLabel('tessoku-book');
143143

144144
expect(label).toBe('');
@@ -154,7 +154,7 @@ test('expects to format contest round label correctly', () => {
154154

155155
```typescript
156156
test('expects to generate correct table structure with mixed problem sources', () => {
157-
const provider = new TessokuBookProvider(ContestType.TESSOKUBOOK);
157+
const provider = new TessokuBookProvider(ContestType.TESSOKU_BOOK);
158158
const tasks = [
159159
{ contest_id: 'tessoku-book', task_id: 'tesskoku_book_a', task_table_index: 'A01' },
160160
{ contest_id: 'tessoku-book', task_id: 'math_and_algorithm_ai', task_table_index: 'A06' },
@@ -182,7 +182,7 @@ test('expects to generate correct table structure with mixed problem sources', (
182182

183183
```typescript
184184
test('expects to get contest round IDs correctly', () => {
185-
const provider = new TessokuBookProvider(ContestType.TESSOKUBOOK);
185+
const provider = new TessokuBookProvider(ContestType.TESSOKU_BOOK);
186186
const tasks = [
187187
{ contest_id: 'tessoku-book', task_id: 'math_and_algorithm_ai', task_table_index: 'A06' },
188188
{ contest_id: 'tessoku-book', task_id: 'typical90_a', task_table_index: 'A77' },
@@ -202,7 +202,7 @@ test('expects to get contest round IDs correctly', () => {
202202

203203
```typescript
204204
test('expects to get header IDs for tasks correctly in ascending order', () => {
205-
const provider = new TessokuBookProvider(ContestType.TESSOKUBOOK);
205+
const provider = new TessokuBookProvider(ContestType.TESSOKU_BOOK);
206206
const tasks = [
207207
{ contest_id: 'tessoku-book', task_id: 'tesskoku_book_a', task_table_index: 'A01' },
208208
{ contest_id: 'tessoku-book', task_id: 'math_and_algorithm_ai', task_table_index: 'A06' },
@@ -226,7 +226,7 @@ test('expects to get header IDs for tasks correctly in ascending order', () => {
226226

227227
```typescript
228228
test('expects to maintain proper sort order across all sections', () => {
229-
const provider = new TessokuBookProvider(ContestType.TESSOKUBOOK);
229+
const provider = new TessokuBookProvider(ContestType.TESSOKU_BOOK);
230230
const tasks = [
231231
{ contest_id: 'tessoku-book', task_id: 'math_and_algorithm_ac', task_table_index: 'C09' },
232232
{ contest_id: 'tessoku-book', task_id: 'math_and_algorithm_ai', task_table_index: 'A06' },
@@ -248,7 +248,7 @@ test('expects to maintain proper sort order across all sections', () => {
248248

249249
```typescript
250250
test('expects to handle section boundaries correctly (A01-A77, B01-B69, C01-C20)', () => {
251-
const provider = new TessokuBookProvider(ContestType.TESSOKUBOOK);
251+
const provider = new TessokuBookProvider(ContestType.TESSOKU_BOOK);
252252
const tasks = [
253253
{ contest_id: 'tessoku-book', task_id: 'tessoku_book_a', task_table_index: 'A01' },
254254
{ contest_id: 'tessoku-book', task_id: 'typical90_a', task_table_index: 'A77' },
@@ -272,7 +272,7 @@ test('expects to handle section boundaries correctly (A01-A77, B01-B69, C01-C20)
272272

273273
```typescript
274274
test('expects to handle empty task results', () => {
275-
const provider = new TessokuBookProvider(ContestType.TESSOKUBOOK);
275+
const provider = new TessokuBookProvider(ContestType.TESSOKU_BOOK);
276276
const filtered = provider.filter([]);
277277

278278
expect(filtered).toEqual([]);
@@ -288,7 +288,7 @@ test('expects to handle empty task results', () => {
288288

289289
```typescript
290290
test('expects to handle task results with different contest types', () => {
291-
const provider = new TessokuBookProvider(ContestType.TESSOKUBOOK);
291+
const provider = new TessokuBookProvider(ContestType.TESSOKU_BOOK);
292292
const mixedTasks = [
293293
{ contest_id: 'tessoku-book', task_id: 'math_and_algorithm_ai', task_table_index: 'A06' },
294294
{ contest_id: 'abc123', task_id: 'abc123_a', problem_index: 'A' },

0 commit comments

Comments
 (0)