Skip to content

tests: cover the NSButtonCell state and value coupling#464

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/nsbuttoncell-state-value
Open

tests: cover the NSButtonCell state and value coupling#464
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/nsbuttoncell-state-value

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

A button cell has no separate value: its int, object and string value are
derived from the cell state, and setting any of them sets the state. This
covers setIntValue reducing to a state (non-zero to on, so 5 reads back 1),
the state driving int/object/float/string value, mixed state carried
through the value as -1, and setObjectValue mapping nil, numbers and empty
strings to the state. The existing NSButtonCell test only covers encoding.

@DTW-Thalion DTW-Thalion requested a review from fredkiefer as a code owner July 12, 2026 01:22
A button cell has no separate value: its int, object and string value are
derived from the cell state, and setting any of them sets the state.  This
covers setIntValue reducing to a state, the state driving int/object/float/
string value, mixed state carried as -1, and setObjectValue mapping nil,
numbers and empty strings to the state.  The existing NSButtonCell test only
covers encoding.
@DTW-Thalion DTW-Thalion force-pushed the tests/nsbuttoncell-state-value branch from d68e353 to 258ba60 Compare July 12, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant