Skip to content

Queen attack#970

Open
A-O-Emmanuel wants to merge 8 commits into
exercism:mainfrom
A-O-Emmanuel:queen-attack
Open

Queen attack#970
A-O-Emmanuel wants to merge 8 commits into
exercism:mainfrom
A-O-Emmanuel:queen-attack

Conversation

@A-O-Emmanuel
Copy link
Copy Markdown
Contributor

This pull request does the following:

Sync test files and meta data to problem specification

Drop strict types comments from test file and example code

Add and sync test meta data to tests (uuid in DocBlocks / #TestDox())

Add exercise to bin/auto-sync.txt to keep it in sync (keep the file alphabetically sorted)

Adding / adjust / ordering test cases to match current problem specs

Add missing test case

@github-actions
Copy link
Copy Markdown

This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.

If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!

@A-O-Emmanuel A-O-Emmanuel mentioned this pull request May 23, 2026
6 tasks
@mk-mxp mk-mxp self-requested a review May 24, 2026 08:19
@mk-mxp mk-mxp added x:action/sync Sync content with its latest version x:knowledge/elementary Little Exercism knowledge required x:module/practice-exercise Work on Practice Exercises x:type/content Work on content (e.g. exercises, concepts) x:size/tiny Tiny amount of work x:rep/tiny Tiny amount of reputation labels May 24, 2026
]);
}

/**
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All changes to this file should not be in this pull request. Please update your fork to the current version of main and rebase your git branch. That should revert changes to this file.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, sorry about this, thank you

Comment thread exercises/practice/queen-attack/QueenAttackTest.php Outdated
Comment thread exercises/practice/queen-attack/QueenAttackTest.php Outdated
public function testQueenHasPositiveRank(): void
{
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('The rank and file numbers must be positive.');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the tests on exception messages from all tests:

Suggested change

Comment thread exercises/practice/queen-attack/QueenAttackTest.php Outdated
A-O-Emmanuel and others added 3 commits May 24, 2026 09:49
Co-authored-by: mk-mxp <55182845+mk-mxp@users.noreply.github.com>
Co-authored-by: mk-mxp <55182845+mk-mxp@users.noreply.github.com>
Co-authored-by: mk-mxp <55182845+mk-mxp@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:action/sync Sync content with its latest version x:knowledge/elementary Little Exercism knowledge required x:module/practice-exercise Work on Practice Exercises x:rep/tiny Tiny amount of reputation x:size/tiny Tiny amount of work x:type/content Work on content (e.g. exercises, concepts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants