test/option_test.rb in rumonade-0.1.0 vs test/option_test.rb in rumonade-0.1.1

- old
+ new

@@ -61,11 +61,11 @@ assert_equal Some("FOO"), Some("foo").flat_map { |s| Some(s.upcase) } assert_equal None, None.flat_map { |s| Some(s.upcase) } end def test_map_behaves_correctly - assert_equal "FOO", Some("foo").map { |s| s.upcase } + assert_equal Some("FOO"), Some("foo").map { |s| s.upcase } assert_equal None, None.map { |s| s.upcase } end def test_shallow_flatten_behaves_correctly assert_equal Some(Some(1)), Some(Some(Some(1))).shallow_flatten @@ -100,6 +100,12 @@ def test_to_a_behaves_correctly assert_equal [1], Some(1).to_a assert_equal [], None.to_a end -end \ No newline at end of file + + def test_select_behaves_correctly + assert_equal Some(1), Some(1).select { |n| n > 0 } + assert_equal None, Some(1).select { |n| n < 0 } + assert_equal None, None.select { |n| n < 0 } + end +end