Sha256: 861a2684a15d55c229c176b126146e95a008add6dc2564d627b7b165c0e4c2c3

Contents?: true

Size: 598 Bytes

Versions: 6

Compression:

Stored size: 598 Bytes

Contents

#!/usr/bin/env ruby
# encoding: UTF-8

require_relative 'helper'

class TestExprGte < TestImpl

  def test_gte_native
    x = WAB::Impl::Gte.new('num', 3)
    assert_equal(['GTE', 'num', 3], x.native, 'GTE native mismatch')
  end

  def test_gte_int
    d = make_sample_data
    x = WAB::Impl::Gte.new('num', 7)
    assert(x.eval(d), 'checking GTE match with an integer arg')

    x = WAB::Impl::Gte.new('num', 8)
    refute(x.eval(d), 'checking GTE mismatch with an integer arg')
  end

  # TBD more tests for each type, Float, boolean, String, URI, UUID, Time, BigDecimal, nil

end # TestExprGte

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wabur-0.7.0 test/test_expr_gte.rb
wabur-0.6.2 test/test_expr_gte.rb
wabur-0.6.1 test/test_expr_gte.rb
wabur-0.6.0 test/test_expr_gte.rb
wabur-0.5.0 test/test_expr_gte.rb
wabur-0.4.0d1 test/test_expr_gte.rb