Sha256: a998924c27dc4e4756cfb84df7388dfdf78a29b01256c8fa03f088450b6e17fa
Contents?: true
Size: 656 Bytes
Versions: 2
Compression:
Stored size: 656 Bytes
Contents
require 'test/unit' require 'cascading' class TC_Operations < Test::Unit::TestCase include Operations def test_aggregator_function_ignore_values min = min_function 'min_field', :ignore => [nil].to_java(:string) assert_not_nil min end def test_aggregator_function_ignore_tuples first = first_function 'first_field', :ignore => [Java::CascadingTuple::Tuple.new(-1)].to_java(Java::CascadingTuple::Tuple) assert_not_nil first end def test_aggregator_function_ignore_exception assert_raise RuntimeError do avg = average_function 'avg_field', :ignore => [nil].to_java(:string) assert_not_nil avg end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cascading.jruby-0.0.7 | test/test_operations.rb |
cascading.jruby-0.0.6 | test/test_operations.rb |