Skip to content

Fix negative numbers (carries #1), with tests - #2

Merged
trans merged 3 commits into
masterfrom
fix-negative
Nov 25, 2026
Merged

trans merged 3 commits into
masterfrom
fix-negative

Conversation

@trans

@trans trans commented Nov 25, 2026

Copy link
Copy Markdown
Member

(-4).to_roman.to_s raised NoMethodError: the code for negative numbers called roman where it meant to_roman.

Not changed: reading a negative numeral back still fails ("-IV".to_roman), and "-IV".is_roman_numeral? is false.

🤖 Generated with Claude Code

MatmaRex and others added 3 commits September 12, 2013 00:29
Sometimes, just sometimes, a man's gotta deal with both years
and centuries BC in one piece of code.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@trans
trans merged commit 0202b93 into master Nov 25, 2026
4 checks passed
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