Skip to content

30 tests added for input_mapper and settings; 675 total pass#482

Open
MichaelFisher1997 wants to merge 1 commit intodevfrom
opencode/schedule-1f5374-20260414055619
Open

30 tests added for input_mapper and settings; 675 total pass#482
MichaelFisher1997 wants to merge 1 commit intodevfrom
opencode/schedule-1f5374-20260414055619

Conversation

@MichaelFisher1997
Copy link
Copy Markdown
Collaborator

Tests added:

input_mapper_tests.zig (16 tests):

  • InputBinding.getName for keys, key_alt, mouse buttons, none
  • InputBinding.eql for .none, key vs key_alt, different types, none vs key
  • ActionBinding.init / initWithAlt constructors
  • InputMapper.init sets default bindings
  • InputMapper.resetToDefaults restores all bindings
  • InputMapper.setBinding / setAlternateBinding updates
  • InputMapper.resetActionToDefault restores single action
  • InputMapper.interface creates valid wrapper and getBinding

persistence_tests.zig (14 tests):

  • setTexturePack returns early when same, changes value, handles multiple changes
  • setEnvironmentMap returns early when same, changes value
  • Settings.getShadowResolution for all quality levels and out-of-bounds clamp
  • Settings.getResolutionIndex finds matching and defaults for unknown
  • Settings.setResolutionByIndex updates and ignores invalid
  • Settings default values
  • SHADOW_QUALITIES array correctness
  • RESOLUTIONS array coverage and roundtrip

All 675 tests pass (exit code 0).

Triggered by scheduled workflow

New%20session%20-%202026-04-14T05%3A56%3A18.519Z
opencode session  |  github run

@github-actions github-actions bot added documentation Improvements or additions to documentation game labels Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation game

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant