ENH: Add inequalities to compressed.py.
TST: Add tests for inequalities.