Fix nonportable use of == with test

Fixes #36.