Skip to content

StringIO: gets at EOF / limit 0 leaves lineno alone; fcntl message matches CRuby - #112

Merged
Largo merged 1 commit into
masterfrom
claude/tender-pasteur-67de3v
Nov 5, 2026
Merged

Largo merged 1 commit into
masterfrom
claude/tender-pasteur-67de3v

Conversation

@Largo

@Largo Largo commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Found by a differential test of StringIO against CRuby.

  • StringIO#gets at EOF returned nil but still incremented lineno. CRuby only counts lines that were actually read. gets(0) also returns "" without counting a line in CRuby; IronRuby now matches both cases.
  • StringIO#fcntl raised NotImplementedError with the .NET default message. It now uses CRuby's text, fcntl() function is unimplemented on this machine.

Testing:

  • ruby/spec library/stringio: 682 examples, 0 failures.
  • A differential matrix of about 75 StringIO operations against CRuby is clean. The only remaining differences are Ruby 3.4+ Encoding#inspect formatting.

Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 5 included reviews currently available. Your 5 included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 6c08a2c8-1d65-41ed-8bc9-9a147ebeb35b
Commits

Reviewing files that changed from the base of the PR and between 0ee26ce and 5dc68f1.

Files selected for processing: 1

  • Src/Libraries/StringIO/StringIO.cs

Autofix is active · Waiting for CI/review

Waiting for complete CI and CodeRabbit review evidence.

@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Autofix reconciliation was requested. Last reported status: Checking. A completed task turn does not mean Autofix has repaired the current PR. Check current status in the Coding task.

@Largo
Largo merged commit 143e9dc into master Nov 5, 2026
8 checks passed
Largo pushed a commit that referenced this pull request Nov 6, 2026
Conflicts: StringIO#gets keeps the PR's shared helper and takes #112's
rule that gets(0) does not count a line; MiscTests keeps master's tests
and the PR's two new ones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KPwZf7MsYwQdhLBCZCkH2C
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