Skip to content

Commit

Permalink
Fix capitalization for autoteam
Browse files Browse the repository at this point in the history
  • Loading branch information
RighthandSon committed Jan 21, 2024
1 parent 5818ccc commit d1c8f40
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Document/Obstacles/Option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function bzwFlag(input: string): FlagCount {
export const OptionsProperties = {
'-a': bzwAccelerations,
'-admsg': bzwRepeatable(bzwString),
'-autoteam': bzwBool,
'-autoTeam': bzwBool,
'-c': bzwBool,
'+f': bzwRepeatable(bzwFlag),
'-f': bzwRepeatable(bzwString),
Expand Down Expand Up @@ -140,7 +140,7 @@ export const OptionsProperties = {
export interface IOptions extends IBaseObject {
'-a'?: Accelerations;
'-admsg'?: string[];
'-autoteam'?: boolean;
'-autoTeam'?: boolean;
'-c'?: boolean;
'-fb'?: boolean;
'+f'?: FlagCount[];
Expand Down
4 changes: 2 additions & 2 deletions src/Document/__tests__/parseBZWDocument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ describe('BZW Document Parser', () => {
-a 12 45
-admsg there is a snake in my boot!
-admsg execute order 66
-autoteam
-autoTeam
-c
+f 23{34}
+f bad{69}
Expand Down Expand Up @@ -528,7 +528,7 @@ describe('BZW Document Parser', () => {
'there is a snake in my boot!',
'execute order 66',
]);
expect(option['-autoteam']).toEqual(true);
expect(option['-autoTeam']).toEqual(true);
expect(option['-c']).toEqual(true);
expect(option['+f']).toEqual([
{ flag: '23', count: 34 } as FlagCount,
Expand Down
4 changes: 2 additions & 2 deletions src/Document/__tests__/writeBZWDocument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ describe('BZW Document Writer', () => {
angular: 38,
},
'-admsg': ['Welcome to my wonder map!', ' by blast'],
'-autoteam': true,
'-autoTeam': true,
'-c': true,
'+f': [
{
Expand Down Expand Up @@ -417,7 +417,7 @@ describe('BZW Document Writer', () => {
-a 50 38
-admsg "Welcome to my wonder map!"
-admsg " by blast"
-autoteam
-autoTeam
-c
+f G{10}
+f US{50}
Expand Down

0 comments on commit d1c8f40

Please sign in to comment.