From 9bb533985eb37bab23702a2b967be8745d6180c4 Mon Sep 17 00:00:00 2001 From: Mike Angell Date: Fri, 4 Oct 2019 15:25:06 +1000 Subject: [PATCH] styling fixes --- test/integration/standard_filter_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/standard_filter_test.rb b/test/integration/standard_filter_test.rb index 8cc7dc3..855514d 100644 --- a/test/integration/standard_filter_test.rb +++ b/test/integration/standard_filter_test.rb @@ -202,8 +202,8 @@ class StandardFiltersTest < Minitest::Test assert_equal ['1', '2', '3', '10'], @filters.sort_numeric(['10', '3', '2', '1']) assert_equal [{ "a" => '1' }, { "a" => '2' }, { "a" => '3' }, { "a" => '10' }], @filters.sort_numeric([{ "a" => '10' }, { "a" => '3' }, { "a" => '1' }, { "a" => '2' }], "a") - end - + end + def test_sort_with_nils assert_equal [1, 2, 3, 4, nil], @filters.sort([nil, 4, 3, 2, 1]) assert_equal [{ "a" => 1 }, { "a" => 2 }, { "a" => 3 }, { "a" => 4 }, {}], @filters.sort([{ "a" => 4 }, { "a" => 3 }, {}, { "a" => 1 }, { "a" => 2 }], "a") @@ -301,7 +301,7 @@ class StandardFiltersTest < Minitest::Test def test_sort_numeric_empty_array assert_equal [], @filters.sort_numeric([], "a") end - + def test_sort_natural_invalid_property foo = [ [1],