diff --git a/tests/common/basic.yaml b/tests/common/basic.yaml index 4dcdb19..c2ece69 100644 --- a/tests/common/basic.yaml +++ b/tests/common/basic.yaml @@ -1,7 +1,7 @@ --- Tournament: - name: Basic Test Tournament Name - short name: Basic Test Short + name: Basic Test Regional Tournament + short name: Basic Test Regional location: Legitimate University state: nCA level: Regionals diff --git a/tests/common/drops.yaml b/tests/common/drops.yaml index 85110e2..6dbaad2 100644 --- a/tests/common/drops.yaml +++ b/tests/common/drops.yaml @@ -1,6 +1,6 @@ --- Tournament: - name: University of Texas at Austin Fall Invitational + name: University of Texas at Austin Invitational short name: UT Austin Invitational location: University of Texas at Austin state: TX diff --git a/tests/common/explicit-and-drops-and-exhibition.yaml b/tests/common/explicit-and-drops-and-exhibition.yaml index a7b5f1d..4a11a01 100644 --- a/tests/common/explicit-and-drops-and-exhibition.yaml +++ b/tests/common/explicit-and-drops-and-exhibition.yaml @@ -1,7 +1,6 @@ --- Tournament: - name: Menomonie Regional - short name: Menomonie Regional + name: Menomonie Regional Tournament location: Menomonie High School state: WI level: Regionals diff --git a/tests/common/penalties.yaml b/tests/common/penalties.yaml index 5234ea1..36de057 100644 --- a/tests/common/penalties.yaml +++ b/tests/common/penalties.yaml @@ -1,7 +1,7 @@ --- Tournament: - name: Basic Test Tournament Name - short name: Basic Test Short + name: Basic Test Regional Tournament + short name: Basic Test Regional location: Legitimate University state: nCA level: Regionals diff --git a/tests/interpreter/snapshots/test.ts.md b/tests/interpreter/snapshots/test.ts.md index 6772a53..a6f8288 100644 --- a/tests/interpreter/snapshots/test.ts.md +++ b/tests/interpreter/snapshots/test.ts.md @@ -40739,7 +40739,7 @@ Generated by [AVA](https://avajs.dev). date: Date 2020-01-01 00:00:00 UTC {}, endDate: Date 2020-01-01 00:00:00 UTC {}, largestPlace: undefined, - name: 'Basic Test Tournament Name', + name: 'Basic Test Regional Tournament', nonExhibitionTeamsCount: 3, startDate: Date 2020-01-01 00:00:00 UTC {}, }, @@ -40998,7 +40998,7 @@ Generated by [AVA](https://avajs.dev). date: Date 2020-01-01 00:00:00 UTC {}, endDate: Date 2020-01-01 00:00:00 UTC {}, largestPlace: undefined, - name: 'Basic Test Tournament Name', + name: 'Basic Test Regional Tournament', nonExhibitionTeamsCount: 2, startDate: Date 2020-01-01 00:00:00 UTC {}, }, @@ -125238,7 +125238,7 @@ Generated by [AVA](https://avajs.dev). date: undefined, endDate: Date 2020-10-24 00:00:00 UTC {}, largestPlace: undefined, - name: 'University of Texas at Austin Fall Invitational', + name: 'University of Texas at Austin Invitational', nonExhibitionTeamsCount: 117, startDate: Date 2020-10-23 00:00:00 UTC {}, }, @@ -170643,7 +170643,7 @@ Generated by [AVA](https://avajs.dev). date: undefined, endDate: Date 2020-10-24 00:00:00 UTC {}, largestPlace: undefined, - name: 'University of Texas at Austin Fall Invitational', + name: 'University of Texas at Austin Invitational', nonExhibitionTeamsCount: 72, startDate: Date 2020-10-23 00:00:00 UTC {}, }, @@ -253333,7 +253333,7 @@ Generated by [AVA](https://avajs.dev). date: undefined, endDate: Date 2022-02-26 00:00:00 UTC {}, largestPlace: undefined, - name: 'Menomonie Regional', + name: 'Menomonie Regional Tournament', nonExhibitionTeamsCount: 13, startDate: Date 2022-02-26 00:00:00 UTC {}, }, @@ -261781,7 +261781,7 @@ Generated by [AVA](https://avajs.dev). date: undefined, endDate: Date 2022-02-26 00:00:00 UTC {}, largestPlace: undefined, - name: 'Menomonie Regional', + name: 'Menomonie Regional Tournament', nonExhibitionTeamsCount: 13, startDate: Date 2022-02-26 00:00:00 UTC {}, }, @@ -297165,7 +297165,7 @@ Generated by [AVA](https://avajs.dev). date: Date 2020-01-01 00:00:00 UTC {}, endDate: Date 2020-01-01 00:00:00 UTC {}, largestPlace: undefined, - name: 'Basic Test Tournament Name', + name: 'Basic Test Regional Tournament', nonExhibitionTeamsCount: 3, startDate: Date 2020-01-01 00:00:00 UTC {}, }, @@ -297424,7 +297424,7 @@ Generated by [AVA](https://avajs.dev). date: Date 2020-01-01 00:00:00 UTC {}, endDate: Date 2020-01-01 00:00:00 UTC {}, largestPlace: undefined, - name: 'Basic Test Tournament Name', + name: 'Basic Test Regional Tournament', nonExhibitionTeamsCount: 2, startDate: Date 2020-01-01 00:00:00 UTC {}, }, diff --git a/tests/interpreter/snapshots/test.ts.snap b/tests/interpreter/snapshots/test.ts.snap index 5405b6c..9e799fa 100644 Binary files a/tests/interpreter/snapshots/test.ts.snap and b/tests/interpreter/snapshots/test.ts.snap differ diff --git a/tests/interpreter/test.ts b/tests/interpreter/test.ts index 7c674b7..b348743 100644 --- a/tests/interpreter/test.ts +++ b/tests/interpreter/test.ts @@ -61,5 +61,5 @@ test("interpreter: basic superscore sanity check", async (t) => { t.is(interpreter.teams[1].points, 5); const interpreterRep = baseInterpreter.superscore(false); - t.is(interpreterRep.Tournament.name, "Basic Test Tournament Name"); + t.is(interpreterRep.Tournament.name, "Basic Test Regional Tournament"); }); diff --git a/tests/validator/cases/invalid-date.yaml b/tests/validator/cases/invalid-date.yaml index 88b15b5..b444e0e 100644 --- a/tests/validator/cases/invalid-date.yaml +++ b/tests/validator/cases/invalid-date.yaml @@ -1,7 +1,7 @@ --- Tournament: - name: Basic Test Tournament Name - short name: Basic Test Short + name: Basic Test Regional Tournament + short name: Basic Test Regional location: Legitimate University state: nCA level: Regionals diff --git a/tests/validator/cases/invalid-end-date.yaml b/tests/validator/cases/invalid-end-date.yaml index 5e16c21..623c7f3 100644 --- a/tests/validator/cases/invalid-end-date.yaml +++ b/tests/validator/cases/invalid-end-date.yaml @@ -1,7 +1,7 @@ --- Tournament: - name: Basic Test Tournament Name - short name: Basic Test Short + name: Basic Test Regional Tournament + short name: Basic Test Regional location: Legitimate University state: nCA level: Regionals diff --git a/tests/validator/cases/invalid-name.yaml b/tests/validator/cases/invalid-name.yaml new file mode 100644 index 0000000..4f597d8 --- /dev/null +++ b/tests/validator/cases/invalid-name.yaml @@ -0,0 +1,70 @@ +--- +Tournament: + name: Basic Test Some Name + short name: Bad Short Name + location: Legitimate University + state: nCA + level: Regionals + division: C + year: 2020 + date: 2020-01-01 + medals: 2 + trophies: 1 + bids: 1 +Events: + - name: Anatomy and Physiology + - name: Disease Detectives + trialed: true + medals: 1 + - name: Experimental Design + trial: true + - name: Write It Do It +Teams: + - number: 1 + school: Cool High School + suffix: Red + state: CA + - number: 2 + school: Cool High School + suffix: White + state: CA + - number: 3 + school: Rival High School + state: CA +Placings: + - team: 1 + event: Anatomy and Physiology + place: 2 + - team: 1 + event: Disease Detectives + place: 1 + - team: 1 + event: Experimental Design + place: 1 + - team: 1 + event: Write It Do It + participated: false + - team: 2 + event: Anatomy and Physiology + place: 1 + - team: 2 + event: Disease Detectives + place: 3 + - team: 2 + event: Experimental Design + place: 2 + - team: 2 + event: Write It Do It + disqualified: true + - team: 3 + event: Anatomy and Physiology + participated: false + - team: 3 + event: Disease Detectives + place: 2 + - team: 3 + event: Experimental Design + participated: true + - team: 3 + event: Write It Do It + place: 1 diff --git a/tests/validator/cases/invalid-start-date.yaml b/tests/validator/cases/invalid-start-date.yaml index 27de9c2..89bfb1a 100644 --- a/tests/validator/cases/invalid-start-date.yaml +++ b/tests/validator/cases/invalid-start-date.yaml @@ -1,7 +1,7 @@ --- Tournament: - name: Basic Test Tournament Name - short name: Basic Test Short + name: Basic Test Regional Tournament + short name: Basic Test Regional location: Legitimate University state: nCA level: Regionals diff --git a/tests/validator/cases/missing-date.yaml b/tests/validator/cases/missing-date.yaml index 009fd97..8d69b97 100644 --- a/tests/validator/cases/missing-date.yaml +++ b/tests/validator/cases/missing-date.yaml @@ -1,7 +1,7 @@ --- Tournament: - name: Basic Test Tournament Name - short name: Basic Test Short + name: Basic Test Regional Tournament + short name: Basic Test Regional location: Legitimate University state: nCA level: Regionals diff --git a/tests/validator/cases/missing-end-date.yaml b/tests/validator/cases/missing-end-date.yaml index 510dec4..ab8b910 100644 --- a/tests/validator/cases/missing-end-date.yaml +++ b/tests/validator/cases/missing-end-date.yaml @@ -1,7 +1,7 @@ --- Tournament: - name: Basic Test Tournament Name - short name: Basic Test Short + name: Basic Test Regional Tournament + short name: Basic Test Regional location: Legitimate University state: nCA level: Regionals diff --git a/tests/validator/cases/out-of-season.yaml b/tests/validator/cases/out-of-season.yaml new file mode 100644 index 0000000..0987959 --- /dev/null +++ b/tests/validator/cases/out-of-season.yaml @@ -0,0 +1,70 @@ +--- +Tournament: + name: Basic Test Regional Tournament + short name: Basic Test Regional + location: Legitimate University + state: nCA + level: Regionals + division: C + year: 2024 + date: 2020-01-01 + medals: 2 + trophies: 1 + bids: 1 +Events: + - name: Anatomy and Physiology + - name: Disease Detectives + trialed: true + medals: 1 + - name: Experimental Design + trial: true + - name: Write It Do It +Teams: + - number: 1 + school: Cool High School + suffix: Red + state: CA + - number: 2 + school: Cool High School + suffix: White + state: CA + - number: 3 + school: Rival High School + state: CA +Placings: + - team: 1 + event: Anatomy and Physiology + place: 2 + - team: 1 + event: Disease Detectives + place: 1 + - team: 1 + event: Experimental Design + place: 1 + - team: 1 + event: Write It Do It + participated: false + - team: 2 + event: Anatomy and Physiology + place: 1 + - team: 2 + event: Disease Detectives + place: 3 + - team: 2 + event: Experimental Design + place: 2 + - team: 2 + event: Write It Do It + disqualified: true + - team: 3 + event: Anatomy and Physiology + participated: false + - team: 3 + event: Disease Detectives + place: 2 + - team: 3 + event: Experimental Design + participated: true + - team: 3 + event: Write It Do It + place: 1 diff --git a/tests/validator/snapshots/test.ts.md b/tests/validator/snapshots/test.ts.md index 04f27a9..306b6e3 100644 --- a/tests/validator/snapshots/test.ts.md +++ b/tests/validator/snapshots/test.ts.md @@ -18,8 +18,8 @@ Generated by [AVA](https://avajs.dev). level: 'Regionals', location: 'Legitimate University', medals: 2, - name: 'Basic Test Tournament Name', - 'short name': 'Basic Test Short', + name: 'Basic Test Regional Tournament', + 'short name': 'Basic Test Regional', state: 'nCA', trophies: 1, year: 2020, @@ -27,9 +27,9 @@ Generated by [AVA](https://avajs.dev). location: { column: 7, line: 10, - position: 181, + position: 188, }, - message: 'date must be a date object or string following ISO8601 (no timestamp)', + message: 'field \'date:\' must be a date object or string following ISO8601 (no timestamp)', warning: false, }, ], @@ -65,8 +65,8 @@ Generated by [AVA](https://avajs.dev). level: 'Regionals', location: 'Legitimate University', medals: 2, - name: 'Basic Test Tournament Name', - 'short name': 'Basic Test Short', + name: 'Basic Test Regional Tournament', + 'short name': 'Basic Test Regional', state: 'nCA', trophies: 1, year: 2020, @@ -74,7 +74,7 @@ Generated by [AVA](https://avajs.dev). location: { column: 11, line: 11, - position: 206, + position: 213, }, message: 'end date cannot be set if date is set', warning: false, @@ -86,6 +86,63 @@ Generated by [AVA](https://avajs.dev). validWithWarnings: false, } +## validator: invalid-name + +> Snapshot 1 + + { + errors: [ + { + context: { + bids: 1, + date: Date 2020-01-01 00:00:00 UTC {}, + division: 'C', + level: 'Regionals', + location: 'Legitimate University', + medals: 2, + name: 'Basic Test Some Name', + 'short name': 'Bad Short Name', + state: 'nCA', + trophies: 1, + year: 2020, + }, + location: { + column: 7, + line: 3, + position: 22, + }, + message: 'field: \'name\' is recommended to end in \'Regional Tournament\' for \'level: Regionals\'', + warning: true, + }, + { + context: { + bids: 1, + date: Date 2020-01-01 00:00:00 UTC {}, + division: 'C', + level: 'Regionals', + location: 'Legitimate University', + medals: 2, + name: 'Basic Test Some Name', + 'short name': 'Bad Short Name', + state: 'nCA', + trophies: 1, + year: 2020, + }, + location: { + column: 13, + line: 4, + position: 57, + }, + message: 'field \'short name:\' (currently \'Bad Short Name\') could be changed to \'Basic Test Some Name\'', + warning: true, + }, + ], + status: 'Valid SciOlyFF! (with warnings)', + success: true, + valid: true, + validWithWarnings: true, + } + ## validator: invalid-start-date > Snapshot 1 @@ -100,8 +157,8 @@ Generated by [AVA](https://avajs.dev). level: 'Regionals', location: 'Legitimate University', medals: 2, - name: 'Basic Test Tournament Name', - 'short name': 'Basic Test Short', + name: 'Basic Test Regional Tournament', + 'short name': 'Basic Test Regional', 'start date': Date 2020-01-01 00:00:00 UTC {}, state: 'nCA', trophies: 1, @@ -110,7 +167,7 @@ Generated by [AVA](https://avajs.dev). location: { column: 13, line: 11, - position: 208, + position: 215, }, message: 'start date cannot be set if date is set', warning: false, @@ -146,8 +203,8 @@ Generated by [AVA](https://avajs.dev). level: 'Regionals', location: 'Legitimate University', medals: 2, - name: 'Basic Test Tournament Name', - 'short name': 'Basic Test Short', + name: 'Basic Test Regional Tournament', + 'short name': 'Basic Test Regional', state: 'nCA', trophies: 1, year: 2020, @@ -176,8 +233,8 @@ Generated by [AVA](https://avajs.dev). level: 'Regionals', location: 'Legitimate University', medals: 2, - name: 'Basic Test Tournament Name', - 'short name': 'Basic Test Short', + name: 'Basic Test Regional Tournament', + 'short name': 'Basic Test Regional', 'start date': Date 2020-01-01 00:00:00 UTC {}, state: 'nCA', trophies: 1, @@ -194,6 +251,41 @@ Generated by [AVA](https://avajs.dev). validWithWarnings: false, } +## validator: out-of-season + +> Snapshot 1 + + { + errors: [ + { + context: { + bids: 1, + date: Date 2020-01-01 00:00:00 UTC {}, + division: 'C', + level: 'Regionals', + location: 'Legitimate University', + medals: 2, + name: 'Basic Test Regional Tournament', + 'short name': 'Basic Test Regional', + state: 'nCA', + trophies: 1, + year: 2024, + }, + location: { + column: 7, + line: 10, + position: 188, + }, + message: 'field \'date:\' not within season given in field \'year:\'', + warning: false, + }, + ], + status: 'Invalid SciOlyFF!', + success: true, + valid: false, + validWithWarnings: false, + } + ## validator: basic > Snapshot 1 @@ -218,7 +310,7 @@ Generated by [AVA](https://avajs.dev). location: { column: 9, line: 20, - position: 433, + position: 428, }, message: 'event: Codebusters has unmarked ties (place 101)', warning: false, @@ -231,7 +323,7 @@ Generated by [AVA](https://avajs.dev). location: { column: 9, line: 35, - position: 790, + position: 785, }, message: 'event: Fermi Questions has unmarked ties (place 69)', warning: false, @@ -1151,8 +1243,7 @@ Generated by [AVA](https://avajs.dev). level: 'Regionals', location: 'Menomonie High School', medals: 3, - name: 'Menomonie Regional', - 'short name': 'Menomonie Regional', + name: 'Menomonie Regional Tournament', 'start date': Date 2022-02-26 00:00:00 UTC {}, state: 'WI', trophies: 3, @@ -1163,14 +1254,33 @@ Generated by [AVA](https://avajs.dev). message: 'field \'bids:\' recommended for level: Regionals', warning: true, }, + { + context: { + 'awards date': Date 2022-02-26 00:00:00 UTC {}, + division: 'C', + 'end date': Date 2022-02-26 00:00:00 UTC {}, + level: 'Regionals', + location: 'Menomonie High School', + medals: 3, + name: 'Menomonie Regional Tournament', + 'start date': Date 2022-02-26 00:00:00 UTC {}, + state: 'WI', + trophies: 3, + 'worst placings dropped': 5, + year: 2022, + }, + location: undefined, + message: 'field \'short name:\' could be changed to \'Menomonie Regional\'', + warning: true, + }, { context: { name: 'Anatomy and Physiology', }, location: { column: 9, - line: 17, - position: 312, + line: 16, + position: 290, }, message: 'event: Anatomy and Physiology has unmarked ties (place 2, 4, 7, 8, 10, 14)', warning: false, @@ -1181,8 +1291,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 18, - position: 345, + line: 17, + position: 323, }, message: 'event: Astronomy has unmarked ties (place 3, 4, 6, 7, 14)', warning: false, @@ -1193,8 +1303,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 19, - position: 365, + line: 18, + position: 343, }, message: 'event: Bridge has unmarked ties (place 2, 14, 22)', warning: false, @@ -1205,8 +1315,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 20, - position: 382, + line: 19, + position: 360, }, message: 'event: Chemistry Lab has unmarked ties (place 1, 7, 14, 22)', warning: false, @@ -1217,8 +1327,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 21, - position: 406, + line: 20, + position: 384, }, message: 'event: Cell Biology has unmarked ties (place 2, 5, 8, 14, 22)', warning: false, @@ -1229,8 +1339,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 22, - position: 429, + line: 21, + position: 407, }, message: 'event: Codebusters has unmarked ties (place 4, 5, 9, 14, 22)', warning: false, @@ -1241,8 +1351,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 23, - position: 451, + line: 22, + position: 429, }, message: 'event: Detector Building has unmarked ties (place 5, 14, 22)', warning: false, @@ -1253,8 +1363,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 24, - position: 479, + line: 23, + position: 457, }, message: 'event: Disease Detectives has unmarked ties (place 5, 6, 7, 11, 14)', warning: false, @@ -1265,8 +1375,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 25, - position: 508, + line: 24, + position: 486, }, message: 'event: Dynamic Planet has unmarked ties (place 3, 5, 6, 9, 10, 14, 22)', warning: false, @@ -1277,8 +1387,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 26, - position: 533, + line: 25, + position: 511, }, message: 'event: Environmental Chemistry has unmarked ties (place 2, 7, 14, 22)', warning: false, @@ -1289,8 +1399,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 27, - position: 567, + line: 26, + position: 545, }, message: 'event: Experimental Design has unmarked ties (place 3, 5, 6, 7, 8, 10, 14)', warning: false, @@ -1301,8 +1411,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 28, - position: 597, + line: 27, + position: 575, }, message: 'event: Forensics has unmarked ties (place 4, 9, 10, 14, 22)', warning: false, @@ -1313,8 +1423,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 29, - position: 617, + line: 28, + position: 595, }, message: 'event: Forestry has unmarked ties (place 5, 14, 22)', warning: false, @@ -1325,8 +1435,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 30, - position: 636, + line: 29, + position: 614, }, message: 'event: Geocaching has unmarked ties (place 2, 7, 14, 22)', warning: false, @@ -1337,8 +1447,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 31, - position: 657, + line: 30, + position: 635, }, message: 'event: Gravity Vehicle has unmarked ties (place 2, 14, 22)', warning: false, @@ -1349,8 +1459,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 32, - position: 683, + line: 31, + position: 661, }, message: 'event: Green Generation has unmarked ties (place 3, 4, 6, 14, 22)', warning: false, @@ -1361,8 +1471,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 33, - position: 710, + line: 32, + position: 688, }, message: 'event: Horticulture has unmarked ties (place 3, 6, 14, 22)', warning: false, @@ -1373,8 +1483,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 34, - position: 733, + line: 33, + position: 711, }, message: 'event: It\'s About Time has unmarked ties (place 2, 3, 14, 22)', warning: false, @@ -1385,8 +1495,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 35, - position: 759, + line: 34, + position: 737, }, message: 'event: Ornithology has unmarked ties (place 3, 5, 14, 22)', warning: false, @@ -1397,8 +1507,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 36, - position: 781, + line: 35, + position: 759, }, message: 'event: Ping Pong Parachute has unmarked ties (place 4, 14, 22)', warning: false, @@ -1409,8 +1519,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 37, - position: 811, + line: 36, + position: 789, }, message: 'event: Remote Sensing has unmarked ties (place 3, 5, 14, 22)', warning: false, @@ -1421,8 +1531,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 38, - position: 836, + line: 37, + position: 814, }, message: 'event: Robo-Cross has unmarked ties (place 14, 22)', warning: false, @@ -1433,8 +1543,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 39, - position: 857, + line: 38, + position: 835, }, message: 'event: Rocks and Minerals has unmarked ties (place 1, 2, 6, 14, 22)', warning: false, @@ -1445,8 +1555,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 40, - position: 886, + line: 39, + position: 864, }, message: 'event: Trajectory has unmarked ties (place 14, 22)', warning: false, @@ -1457,8 +1567,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 41, - position: 907, + line: 40, + position: 885, }, message: 'event: Virology has unmarked ties (place 4, 5, 8, 14, 22)', warning: false, @@ -1469,8 +1579,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 42, - position: 926, + line: 41, + position: 904, }, message: 'event: WiFi Lab has unmarked ties (place 2, 14, 22)', warning: false, @@ -1481,8 +1591,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 43, - position: 945, + line: 42, + position: 923, }, message: 'event: Wright Stuff has unmarked ties (place 3, 14, 22)', warning: false, @@ -1494,8 +1604,8 @@ Generated by [AVA](https://avajs.dev). }, location: { column: 9, - line: 44, - position: 968, + line: 43, + position: 946, }, message: 'event: Write It Do It has unmarked ties (place 2, 5, 8, 14)', warning: false, @@ -1866,6 +1976,54 @@ Generated by [AVA](https://avajs.dev). message: 'Tournament.medals must be greater than or equal to 1', warning: false, }, + { + context: { + 'awards date': Date 2022-03-05 00:00:00 UTC {}, + division: 'A', + 'end date': Date 2022-03-05 00:00:00 UTC {}, + level: 'States', + location: 'Online', + medals: 0, + name: 'Southern California Elementary Science Olympiad', + 'reverse scoring': true, + 'short name': 'SoCal Elementary', + 'start date': Date 2022-03-05 00:00:00 UTC {}, + state: 'sCA', + trophies: 0, + year: 2022, + }, + location: { + column: 7, + line: 3, + position: 22, + }, + message: 'name not necessary for States/Nationals', + warning: true, + }, + { + context: { + 'awards date': Date 2022-03-05 00:00:00 UTC {}, + division: 'A', + 'end date': Date 2022-03-05 00:00:00 UTC {}, + level: 'States', + location: 'Online', + medals: 0, + name: 'Southern California Elementary Science Olympiad', + 'reverse scoring': true, + 'short name': 'SoCal Elementary', + 'start date': Date 2022-03-05 00:00:00 UTC {}, + state: 'sCA', + trophies: 0, + year: 2022, + }, + location: { + column: 13, + line: 4, + position: 84, + }, + message: 'field \'short name:\' (currently \'SoCal Elementary\') could be changed to \'Southern California Elementary\'', + warning: true, + }, { context: { name: 'A is for Anatomy', @@ -2282,7 +2440,7 @@ Generated by [AVA](https://avajs.dev). location: { column: 11, line: 25, - position: 462, + position: 469, }, message: 'non-canonical school Cool High School', warning: true, @@ -2297,7 +2455,7 @@ Generated by [AVA](https://avajs.dev). location: { column: 11, line: 29, - position: 535, + position: 542, }, message: 'non-canonical school Cool High School', warning: true, @@ -2311,7 +2469,7 @@ Generated by [AVA](https://avajs.dev). location: { column: 11, line: 33, - position: 610, + position: 617, }, message: 'non-canonical school Rival High School', warning: true, diff --git a/tests/validator/snapshots/test.ts.snap b/tests/validator/snapshots/test.ts.snap index 00bfb3d..c313a62 100644 Binary files a/tests/validator/snapshots/test.ts.snap and b/tests/validator/snapshots/test.ts.snap differ