$formula_patt = 'CH6'; $expected_ranges = { 'H' => { 'high' => 6, 'low' => 6 }, 'C' => { 'high' => 1, 'low' => 1 } }; $expected_options = {};