Non-equality matchers

be_like
ut.expect( 'Lorem_impsum' ).to_(
  be_like( a_mask => '%rem\_%', a_escape_char => '\' ) );

 ut.expect( 'Lorem_impsum' ).to_( be_like( '%rem%sum' ) );

a_mask, a_escape_char -> see Oracle like operator
match
ut.expect( a_actual => '123-456-ABcd' ).to_(
  match( a_pattern => '\d{3}-\d{3}-[a-z]', a_modifiers => 'i' ) );

  ut.expect( 'some value' ).to_( match( '^some.*' ) );

a_pattern, a_modifiers -> see regexp_like function
be_between
ut.expect( 3 ).to_( be_between( 1, 3 ) );
be_greater_or_equal
ut.expect( sysdate ).to_( be_greater_or_equal( sysdate - 1 ) );
be_greater_than
ut.expect( 2 ).to_( be_greater_than( 1 ) );
be_less_or_equal
ut.expect( 3 ).to_( be_less_or_equal( 3 ) );
be_less_than
exec ut.expect( 3 ).to_( be_less_than( 2 ) );
Comments