@Test
    public void using_non_commutative_comparison_operator_with_field_value_is_well_defined() throws ParseException {
        var documents = createDocs();
        // Doc 0 contains 24 in `hint` field.
        assertEquals(Result.FALSE, evaluate("25 <= test.hint", documents.get(0)));
        assertEquals(Result.TRUE, evaluate("24 <= test.hint", documents.get(0)));
        assertEquals(Result.TRUE, evaluate("25 > test.hint", documents.get(0)));
        assertEquals(Result.FALSE, evaluate("24 > test.hint", documents.get(0)));
        assertEquals(Result.TRUE, evaluate("24 >= test.hint", documents.get(0)));

        assertEquals(Result.FALSE, evaluate("test.hint <= 23", documents.get(0)));
        assertEquals(Result.TRUE, evaluate("test.hint <= 24", documents.get(0)));
        assertEquals(Result.TRUE, evaluate("test.hint > 23", documents.get(0)));
        assertEquals(Result.FALSE, evaluate("test.hint > 24", documents.get(0)));
        assertEquals(Result.TRUE, evaluate("test.hint >= 24", documents.get(0)));
    }
@author Simon Thoresen Hult
@author bratseth
document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java