Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

featureflags: fix a bug which caused all flags to report as 'false' #268

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

jstine35
Copy link
Collaborator

@jstine35 jstine35 commented Jan 26, 2025

Adds the featureflag unit test, which was missing from my previous PR (forgot to add).

Also clarifies the use of "feature flags" as the term for this new table, both in function name and comments.

This bug slipped in as a result (as usual) of some late-stage cleanup and refactor that I did just before commit. As a result, I went ahead and implemented a unit test of sorts that I had kind of thought about implementing earlier but, due to time constraints, I opted to skip past.

An _score naming convention is used to differentiate the internal values for unit testing from the regular values.

@jstine35 jstine35 requested a review from kivutar January 26, 2025 02:13
 - Adds the featureflag unit test, which was missing from my previous PR (forgot to add).
 - Adds a set of special internal values to help verify the behavior of the three possible valid macro states.
 - Also clarifies the use of "feature flags" as the term for this new table, both in function name and comments.
@jstine35 jstine35 merged commit 1e6b45c into libretro:master Jan 26, 2025
10 checks passed
@jstine35 jstine35 deleted the featflags branch January 26, 2025 15:07
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.

1 participant