Repository navigation
Tests: 13 Rust unit tests now call the code they claim to check - #556
Merged
Merged
Conversation
…rmulas The y-stretch and banding tests never called FulgoraRoads::eval. They now do, and each is proven red under a planted product break the old test missed (product-first y narrowing; floored remainder). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
The test recomputed both f32 forms itself and never built a FulgoraScrap. It now builds one at frequency 4/3 and pins cells_cut. Proven red when the product narrows the product instead of the constant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
Both tests checked a copy of the formula. The island test now differences two evals to recover 20*(2.5 - d*seg/200); the macro test differences a far and a spawn-on-point eval to recover 60*a*max(0,b). Each is proven red under a planted break (nauvis_seg in the island term; the rectifier removed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
The test recomputed the three cutout terms with its own constants. It now pins moisture_main at its clamp, recovers the cutout from the product's output and compares it with the smallest term. Proven red when any one of the three terms is dropped from the product's min. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
The test compared two f64 associations with each other. It now checks the product's sin and cos against the game polynomial at the TypeScript's radians. Proven red when from_degrees uses the tidied association. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
The test only counted a > b, which holds with the lerps either way round. It now rebuilds the crack and mix terms and checks both product fields, plus the saturated mix ends. Proven red when flood_cracks_a swaps its lerp arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
…_nauvis exactly Any tree other than elevation_lakes used to pass. The test now compares the layer's elevation bit for bit with a default ElevationNauvis. Proven red when the layer builds the no-cliff variant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
…rected op The test checked the limit in its own copy of the formula. It now compares the product at p == 1 with p just below 1. Proven red when the branch returns 1/(octaves+1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
Only FULGORA_SCRAP was pinned; the others only had to stay distinct. All nine now match the values in the deleted placementRoll.ts (read from git history). Proven red when ENEMY_BASES moves by one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
The test sorted a local literal against itself. It now reads AQUILO_ENTITIES, checks the game's autoplace order strings are strictly increasing in table order and ties each autoplacer's positioning to its entity kind. Proven red when two entries swap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
…it differs The test only looked at pixels where both overlays equal terrain, so an all view missing the icebergs passed. It now checks every pixel on a window that holds both overlays. Proven red when the all view paints wells only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
The test carried a copy of the scoring loop. score gains a score_with variant that lets the test move one expectation by one ULP, so the real scorer is under test. Proven red when the scorer's exact match is loosened to a tolerance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 5 minutes. View limit details
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. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes 13 Rust unit tests that recomputed a formula inside the test instead of calling the product code, so a broken product could not fail them. No test is deleted, and every edit sits in a
#[cfg(test)]module, soengine.wasmis unchanged.How each fix was proven
Same two-run check as #554: plant one break in product code. The old test (as on
main) stays green, the fixed test goes red on its own assertion, and with the break removed the fixed test passes.fulgora_roads.rsthe_y_stretch_narrows_the_constant_not_the_productFulgoraRoads::evalagainst a Voronoi sampled aty * f32(0.8), bit for bity * 0.8instead of the constantfulgora_roads.rsthe_banding_fields_are_a_truncated_remainder.rem_euclid(1.0)in place of% 1.0fulgora_scrap.rsoff_the_default_slider_the_two_forms_disagreeFulgoraScrapbuilt at frequency 4/3,cells_cutpinnedelevation_nauvis.rsthe_starting_island_term_reads_the_raw_segmentation...evalself.nauvis_segin place ofself.segelevation_nauvis.rsthe_macro_term_is_half_wave_rectified...60*a*max(0,b)recovered from twoevalsmax2removednauvis_climate.rsthe_moisture_cutout_reads_all_three_fieldsMoisture::eval(bias pinned at its clamp)starting_spot_at_angle.rsthe_radian_conversion_keeps_the_typescripts_associationAngleTrig::from_degreesfor 1-720 degrees, bit for bitangle * (pi / 180)vulcanus_cracks.rsthe_two_flood_cracks_lerp_in_opposite_directionslerp_f32over 1,200 pointsflood_cracks_astarting_patches.rsthe_elevation_the_lake_mask_reads_is_elevation_nauvisElevationNauviswith_cliff_elevation: falsevariable_persistence_multioctave_noise.rsthe_persistence_one_branch...1/(octaves+1)placement/roll.rsthe_salt_table_is_distinct_and_matches_the_typescriptsENEMY_BASESoff by oneplacement/aquilo.rsthe_autoplacer_table_is_in_the_games_sorted_orderAQUILO_ENTITIESagainst the game's autoplaceorderstringsfmw-wasmthe_all_view_is_terrain_plus_both_overlaysallpixel must be terrain, wells or icebergs, and take the overlay where only one differsVIEW_ALLdraws wells onlyfixtures.rsthe_scorer_resolves_a_single_wrong_pointscorenow delegates toscore_with, and the test grades through itabs() < 1e-6Checked and left alone
fmw-wasmthe_deep_colour_truncates_rather_than_rounding: its one product assertion already fails when the colour is rounded, so the audit's claim was wrong.the_series_term_powf_is_correctly_rounded_on_this_host: a deliberate canary. Its expected bits are already independent exact values, and failing on a host whose libm rounds differently is its stated purpose.Gate
scripts/verify-rust.shpasses on the branch: 552 tests infmw-noise, 52 infmw-wasm, the poison check, and theengine.wasmbyte check. None of the changed tests is inPOISONED_TESTS.cargo denywas skipped locally (not installed); CI runs it.Found by a read-only test audit (the
pruning-testsskill). Companion to #554.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ