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