Skip to content

Test what every table answers outside its range - #191

Merged
erwan-joly merged 1 commit into
masterfrom
claude/project-thread-mxale6
Nov 22, 2026
Merged

erwan-joly merged 1 commit into
masterfrom
claude/project-thread-mxale6

Conversation

@erwan-joly

@erwan-joly erwan-joly commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Erwan · project thread

Test-only change; no source or package version changes. The documentation tests already cover the tables themselves; these cover the edges they never reach. Branch coverage goes from 96.8% to 98.1%.

  • Reputation above every rank, dignity below every rank.
  • Glacernon shop price multipliers per dignity rank, and the plain multiplier outside Glacernon.
  • Dignity loss capped at 50.
  • Monster critical chance and rate.
  • Sum tables stop at level 5.
  • Partner skill ranks outside 1..7 weigh nothing.
  • Specialist upgrades, shell slots/options and mate levels past their tables.

Generated by Claude Code

Summary by CodeRabbit

  • Tests
    • Expanded automated coverage for values at and beyond supported limits, including reputation and dignity rankings, dignity pricing and loss caps, monster critical values, sum levels, partner skill weights, specialist upgrades, shell inputs, and mate levels.
    • These checks help ensure boundary cases continue to behave consistently.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkUKEQecMAmWagEiCK5
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds MSTest assertions for boundary values and fixed limits across reputation, dignity, monster critical values, sum levels, partner skills, specialist upgrades, shells, and mate experience.

Changes

Boundary tests

Layer / File(s) Summary
Reputation and dignity assertions
test/NosCore.Algorithm.Tests/OutOfRangeTests.cs
Tests assert results for reputation and dignity extremes, Glacernon shop-price multipliers, and dignity-loss inputs.
Calculation and rank limits
test/NosCore.Algorithm.Tests/OutOfRangeTests.cs
Tests assert monster critical values, the sum-service maximum level, partner-rank weights, and specialist points at high upgrade levels.
Shell and mate boundary assertions
test/NosCore.Algorithm.Tests/OutOfRangeTests.cs
Tests assert empty results for out-of-range shell inputs and compare experience results for selected pet and partner levels.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Suggested reviewers: claude

Merge Risk: Minimal · up to 286f0

This pull request only adds tests for out-of-range table behavior and does not change production code. It poses no meaningful merge risk beyond CI confirming the new tests pass.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: the PR adds tests that check what each table returns outside its documented range. The raw summary and PR objectives both describe a test-only change covering reputat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: the PR adds tests that check what each table returns outside its documented range. The raw summary and PR objectives both describe a test-only change covering reputation, dignity, Glacernon multipliers, monster criticals, sum tables, partner skills, specialist upgrades, shells, and mate levels. The title is specific and matches the changeset. It is not a vague or generic title and does not describe unrelated work.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 6f1b15a and 286f0e9.

Files selected for processing: 1

  • test/NosCore.Algorithm.Tests/OutOfRangeTests.cs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@erwan-joly
erwan-joly merged commit a1ee142 into master Nov 22, 2026
3 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