Maybe add a test where the quantity contains an array with all three "generic" values at once, i.e. `[0., np.inf, np.nan]`.  I worry about that logic breaking in the future.