Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f3a86f5
Sync word-count
Hazeolation May 26, 2026
401518b
Re-add comment to tests.toml
Hazeolation May 27, 2026
d6e143a
Fix workflow issues
Hazeolation May 27, 2026
1ee318e
Fix test for quotation and apostrophe
Hazeolation May 27, 2026
a0b2237
Update exercises/practice/word-count/WordCountTest.php
Hazeolation Jun 1, 2026
71d545a
Update exercises/practice/word-count/WordCountTest.php
Hazeolation Jun 1, 2026
b545d04
Update exercises/practice/word-count/WordCountTest.php
Hazeolation Jun 1, 2026
e504656
Update exercises/practice/word-count/WordCountTest.php
Hazeolation Jun 1, 2026
574a5c8
Update exercises/practice/word-count/WordCountTest.php
Hazeolation Jun 1, 2026
6cf3409
Update exercises/practice/word-count/WordCountTest.php
Hazeolation Jun 1, 2026
a1811e5
Update exercises/practice/word-count/WordCountTest.php
Hazeolation Jun 1, 2026
4fa4b57
Update exercises/practice/word-count/WordCountTest.php
Hazeolation Jun 1, 2026
6082a2e
Update exercises/practice/word-count/WordCountTest.php
Hazeolation Jun 1, 2026
28026c7
Fix test formatting
Hazeolation Jun 1, 2026
45846c3
Add forgotten trailing commas
Hazeolation Jun 1, 2026
faf3c82
Adjust example.php regex
Hazeolation Jun 1, 2026
ea49c1e
Adjust regex in example.php
Hazeolation Jun 1, 2026
5f570f3
Sync robot-name
Hazeolation Jun 10, 2026
80ea01e
Revert "Adjust regex in example.php"
Hazeolation Jun 10, 2026
3a823f1
Reapply "Adjust regex in example.php"
Hazeolation Jun 10, 2026
a057f36
Merge branch 'exercism:main' into main
Hazeolation Jun 10, 2026
bdf38ae
Remove strict type comments from RobotNameTest.php and example.php
Hazeolation Jun 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/auto-sync.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ resistor-color
resistor-color-duo
reverse-string
rna-transcription
robot-name
robot-simulator
roman-numerals
rotational-cipher
Expand Down
12 changes: 5 additions & 7 deletions exercises/practice/robot-name/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ Manage robot factory settings.

When a robot comes off the factory floor, it has no name.

The first time you turn on a robot, a random name is generated in the format
of two uppercase letters followed by three digits, such as RX837 or BC811.
The first time you turn on a robot, a random name is generated in the format of two uppercase letters followed by three digits, such as RX837 or BC811.

Every once in a while we need to reset a robot to its factory settings,
which means that its name gets wiped. The next time you ask, that robot will
respond with a new random name.
Every once in a while we need to reset a robot to its factory settings, which means that its name gets wiped.
The next time you ask, that robot will respond with a new random name.

The names must be random: they should not follow a predictable sequence.
Using random names means a risk of collisions. Your solution must ensure that
every existing robot has a unique name.
Using random names means a risk of collisions.
Your solution must ensure that every existing robot has a unique name.
3 changes: 2 additions & 1 deletion exercises/practice/robot-name/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"lafent",
"masters3d",
"petemcfarlane",
"schorsch3000"
"schorsch3000",
"hazeolation"
],
"files": {
"solution": [
Expand Down
22 changes: 0 additions & 22 deletions exercises/practice/robot-name/.meta/example.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
<?php

/*
* By adding type hints and enabling strict type checking, code can become
* easier to read, self-documenting and reduce the number of potential bugs.
* By default, type declarations are non-strict, which means they will attempt
* to change the original type to match the type specified by the
* type-declaration.
*
* In other words, if you pass a string to a function requiring a float,
* it will attempt to convert the string value to a float.
*
* To enable strict mode, a single declare directive must be placed at the top
* of the file.
* This means that the strictness of typing is configured on a per-file basis.
* This directive not only affects the type declarations of parameters, but also
* a function's return type.
*
* For more info review the Concept on strict type checking in the PHP track
* <link>.
*
* To disable strict typing, comment out the directive below.
*/

declare(strict_types=1);

class Robot
Expand Down
22 changes: 0 additions & 22 deletions exercises/practice/robot-name/RobotNameTest.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
<?php

/*
* By adding type hints and enabling strict type checking, code can become
* easier to read, self-documenting and reduce the number of potential bugs.
* By default, type declarations are non-strict, which means they will attempt
* to change the original type to match the type specified by the
* type-declaration.
*
* In other words, if you pass a string to a function requiring a float,
* it will attempt to convert the string value to a float.
*
* To enable strict mode, a single declare directive must be placed at the top
* of the file.
* This means that the strictness of typing is configured on a per-file basis.
* This directive not only affects the type declarations of parameters, but also
* a function's return type.
*
* For more info review the Concept on strict type checking in the PHP track
* <link>.
*
* To disable strict typing, comment out the directive below.
*/

declare(strict_types=1);

use PHPUnit\Framework\TestCase;
Expand Down
Loading