Is there an efficient concise way to Assert for known possible values ahead of time, i.e. if a variable has values of either 0 or 1 (strings)? This is for a specific case with checkboxes.
But what about a more general case, like {alpha, beta, gamma, zetta}?
Is there an efficient concise way to Assert for known possible values ahead of time, i.e. if a variable has values of either
0
or1
(strings)? This is for a specific case with checkboxes.But what about a more general case, like {
alpha
,beta
,gamma
,zetta
}?