Skip to content

fix(test): fix ActionName pointer comparison in test assertions#57

Merged
codepuncher merged 1 commit into
mainfrom
fix/action-name-test-pointer-comparison
Jun 18, 2026
Merged

fix(test): fix ActionName pointer comparison in test assertions#57
codepuncher merged 1 commit into
mainfrom
fix/action-name-test-pointer-comparison

Conversation

@codepuncher

@codepuncher codepuncher commented Jun 18, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 18, 2026 11:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes incorrect test assertions that were comparing const char* pointers instead of string contents when validating Config::ActionName, and adds documentation for a planned SMF menu layout redesign.

Changes:

  • Update ActionName test assertions to compare string contents via std::string_view.
  • Add SMF menu layout redesign design spec documentation.
  • Add an implementation plan for the SMF menu layout redesign.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
test/PluginTests.cpp Fixes ActionName(...) == "literal" pointer comparisons by forcing string comparison with std::string_view.
docs/superpowers/specs/2026-06-18-smf-menu-layout-redesign-design.md Adds a design spec describing a sectioned/indented UI layout for RenderSettings().
docs/superpowers/plans/2026-06-18-smf-menu-layout-redesign.md Adds an implementation plan and code snippet for the planned RenderSettings() layout changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/superpowers/specs/2026-06-18-smf-menu-layout-redesign-design.md Outdated
Comment thread docs/superpowers/plans/2026-06-18-smf-menu-layout-redesign.md Outdated
@codepuncher codepuncher force-pushed the fix/action-name-test-pointer-comparison branch from 40d6263 to 981ffe8 Compare June 18, 2026 11:46
@codepuncher codepuncher requested a review from Copilot June 18, 2026 11:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@codepuncher codepuncher merged commit d9c19ae into main Jun 18, 2026
11 checks passed
@codepuncher codepuncher deleted the fix/action-name-test-pointer-comparison branch June 18, 2026 11:50
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