Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syncing roman-numerals to the problem specification #669

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

michalporeba
Copy link
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
Copy link
Member

@tasxatzial tasxatzial left a comment

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?

Copy link
Member

@tasxatzial tasxatzial left a comment

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.

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

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

(deftest three-thousand
Copy link
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
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
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
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))))

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