Skip to content

Update Integer#1920

Closed
sampersand wants to merge 0 commit intoruby:masterfrom
sampersand:swesterman/24-07-04/integer
Closed

Update Integer#1920
sampersand wants to merge 0 commit intoruby:masterfrom
sampersand:swesterman/24-07-04/integer

Conversation

@sampersand
Copy link
Copy Markdown
Contributor

  • part 1, finished allbut coercion
  • i think i got em
  • everything but two methods
  • more tests
  • more tests, now just for coerce and enumerators
  • partx?
  • x

@ParadoxV5
Copy link
Copy Markdown
Contributor

Welcome back, brother.

Comment on lines -1267 to -1301
| (2) -> String
| (3) -> String
| (4) -> String
| (5) -> String
| (6) -> String
| (7) -> String
| (8) -> String
| (9) -> String
| (10) -> String
| (11) -> String
| (12) -> String
| (13) -> String
| (14) -> String
| (15) -> String
| (16) -> String
| (17) -> String
| (18) -> String
| (19) -> String
| (20) -> String
| (21) -> String
| (22) -> String
| (23) -> String
| (24) -> String
| (25) -> String
| (26) -> String
| (27) -> String
| (28) -> String
| (29) -> String
| (30) -> String
| (31) -> String
| (32) -> String
| (33) -> String
| (34) -> String
| (35) -> String
| (36) -> String
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.

These were probably to represent that integer.to_s(69) is an error.
But this error is literally not a type error:

42.to_s 'a' # TypeError
42.to_s 69  # ArgumentError

Not to mention how’d this error arise in production…

@sampersand sampersand force-pushed the swesterman/24-07-04/integer branch 2 times, most recently from a6f39ee to 0329b97 Compare July 8, 2024 19:28
@sampersand sampersand closed this Jul 8, 2024
@sampersand sampersand force-pushed the swesterman/24-07-04/integer branch from 0329b97 to b85cd82 Compare July 8, 2024 19:30
@ParadoxV5 ParadoxV5 mentioned this pull request Jul 8, 2024
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