[PR #4026] [MERGED] Add shadow_color coverage to the text display render parity test #5367

Closed
opened 2026-11-03 05:12:05 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4026
Author: @JustKarkat
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: test/text-display-shadow-parity


📝 Commits (1)

  • 2982f6e Add shadow_color coverage to the text display render parity test

📊 Changes

1 file changed (+12 additions, -0 deletions)

View changed files

📝 tools/test_text_display_render_parity.py (+12 -0)

📄 Description

Supersedes the test-only half of #3813 (#3531's fix already landed in #3341).

Adds the shadow cases that #3341's two fixes leave uncovered in
tools/test_text_display_render_parity.py:

  • a SHADOWS pool with the packed ARGB ints and the [r, g, b, a] float
    lists the scoreboard command writes, including 0 (NO_SHADOW), and a
    35% chance for random text parts to carry shadow_color
  • five fixed cases: a red packed shadow under white text, a half-alpha
    green list shadow, an explicit no-shadow, a legacy-code line with a pure
    blue list shadow, and an aqua text with a fading list shadow at low
    opacity

Local run (python3 tools/test_text_display_render_parity.py, full 600
cases): 600/600 match, 0 oracle errors.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4026 **Author:** [@JustKarkat](https://github.com/JustKarkat) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `test/text-display-shadow-parity` --- ### 📝 Commits (1) - [`2982f6e`](https://github.com/horizon-rust/horizon/commit/2982f6eb9ab4d84b06c897844af310af8b48059a) Add shadow_color coverage to the text display render parity test ### 📊 Changes **1 file changed** (+12 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tools/test_text_display_render_parity.py` (+12 -0) </details> ### 📄 Description Supersedes the test-only half of #3813 (#3531's fix already landed in #3341). Adds the shadow cases that #3341's two fixes leave uncovered in `tools/test_text_display_render_parity.py`: - a `SHADOWS` pool with the packed ARGB ints and the `[r, g, b, a]` float lists the scoreboard command writes, including `0` (NO_SHADOW), and a 35% chance for random text parts to carry `shadow_color` - five fixed cases: a red packed shadow under white text, a half-alpha green list shadow, an explicit no-shadow, a legacy-code line with a pure blue list shadow, and an aqua text with a fading list shadow at low opacity Local run (`python3 tools/test_text_display_render_parity.py`, full 600 cases): 600/600 match, 0 oracle errors. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12:05 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5367
No description provided.