Skip to content

syncing roman-numerals to the problem specification#669

Closed
michalporeba wants to merge 2 commits into
exercism:mainfrom
michalporeba:sync-roman-numerals
Closed

syncing roman-numerals to the problem specification#669
michalporeba wants to merge 2 commits into
exercism:mainfrom
michalporeba:sync-roman-numerals

Conversation

@michalporeba

Copy link
Copy Markdown
Contributor

Running sync on the roman numerals exercise to standardise the instructions and the test cases with the problem specification. Some of the test cases have changed so the solutions should be re-evaluated.

@michalporeba michalporeba changed the title syncing to the problem specification syncing roman-numerals to the problem specification Sep 11, 2024
@tasxatzial tasxatzial self-requested a review September 11, 2024 16:14

@tasxatzial tasxatzial left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The docs and metadata for all exercises were synced a few days ago, and there haven't been any changes to the problem descriptions since. It seems like your branch is out of sync, which could be causing the PR to show changes that don’t actually exist. Maybe do a git rebase main on your branch and then force-push?

@tasxatzial tasxatzial left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One test case is missing (1666), and the function three-thousand is defined four times.

See suggestions.

(deftest three-thousand
(is (= "MMM" (roman-numerals/numerals 3000))))

(deftest three-thousand

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
(deftest three-thousand
(deftest three-thousand-one

(deftest three-thousand
(is (= "MMMI" (roman-numerals/numerals 3001))))

(deftest three-thousand

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
(deftest three-thousand
(deftest three-thousand-eight-hundred-eighty-eight

(deftest three-thousand
(is (= "MMMDCCCLXXXVIII" (roman-numerals/numerals 3888))))

(deftest three-thousand

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
(deftest three-thousand
(deftest three-thousand-nine-hundred-ninety-nine

@@ -55,3 +67,12 @@

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
(deftest one-thousand-six-hundred-sixty-six
(is (= "MDCLXVI" (roman-numerals/numerals 1666))))

@tasxatzial

Copy link
Copy Markdown
Member

Closing this as it is superseded by #734

@tasxatzial tasxatzial closed this Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants