Is different that


Definition

Return true if value is different that another value.

Usage

addRule("field -> diff: different value")

Tests

@Test
public final void testRuleMinOk() throws Exception {
    UtilTest.testIt("diff:hello world", "hello", true);
    UtilTest.testIt("diff:123", "1234", true);
}

@Test
public final void testRuleMinNotOk() throws Exception {
    UtilTest.testIt("diff:hello world", "hello world", false);
    UtilTest.testIt("diff:123", "123", false);
}

results matching ""

    No results matching ""