ENH: Use case-insensitive checks for 'inf' in parser.

Instead of just 'inf' or '-inf', can test for 'Inf', '-Inf', 'INF', etc.
Uses strcasecmp under the hood.

(also, small fix to assert_almost_equal to make string comparisons
clearer)