From 5ea58aa0910ac1d002d9c400566778004d6dd5f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20S=C3=B8gaard?= <9662430+andershagbard@users.noreply.github.com> Date: Mon, 16 Oct 2023 21:33:52 +0200 Subject: [PATCH] Prettify --- test/integration/standard_filter_test.rb | 30 ++++++++++++------------ 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/test/integration/standard_filter_test.rb b/test/integration/standard_filter_test.rb index e17529066..866186618 100644 --- a/test/integration/standard_filter_test.rb +++ b/test/integration/standard_filter_test.rb @@ -267,11 +267,11 @@ def test_sort def test_sort_deep_default_separator input = [ - { "foo" => { "price" => 4, "handle" => "alpha" } } , - { "foo" => { "handle" => "beta" } } , - { "foo" => { "price" => 1, "handle" => "gamma" } } , - { "foo" => { "handle" => "delta" } } , - { "foo" => { "price" => 2, "handle" => "epsilon" } } , + { "foo" => { "price" => 4, "handle" => "alpha" } }, + { "foo" => { "handle" => "beta" } }, + { "foo" => { "price" => 1, "handle" => "gamma" } }, + { "foo" => { "handle" => "delta" } }, + { "foo" => { "price" => 2, "handle" => "epsilon" } }, ] expectation = [ { "foo" => { "price" => 1, "handle" => "gamma" } }, @@ -285,11 +285,11 @@ def test_sort_deep_default_separator def test_sort_deep_custom_separator input = [ - { "foo" => { "price" => 4, "handle" => "alpha" } } , - { "foo" => { "handle" => "beta" } } , - { "foo" => { "price" => 1, "handle" => "gamma" } } , - { "foo" => { "handle" => "delta" } } , - { "foo" => { "price" => 2, "handle" => "epsilon" } } , + { "foo" => { "price" => 4, "handle" => "alpha" } }, + { "foo" => { "handle" => "beta" } }, + { "foo" => { "price" => 1, "handle" => "gamma" } }, + { "foo" => { "handle" => "delta" } }, + { "foo" => { "price" => 2, "handle" => "epsilon" } }, ] expectation = [ { "foo" => { "price" => 1, "handle" => "gamma" } }, @@ -529,13 +529,13 @@ def test_uniq_invalid_property def test_uniq_deep_default_separator input = [ - { "foo" => { "bar" => "baz", "handle" => "alpha" } } , - { "foo" => { "bar" => "baz", "handle" => "beta" } } , - { "foo" => { "bar" => "qux", "handle" => "charlie" } } , + { "foo" => { "bar" => "baz", "handle" => "alpha" } }, + { "foo" => { "bar" => "baz", "handle" => "beta" } }, + { "foo" => { "bar" => "qux", "handle" => "charlie" } }, ] expectation = [ - { "foo" => { "bar" => "baz", "handle" => "alpha" } } , - { "foo" => { "bar" => "qux", "handle" => "charlie" } } , + { "foo" => { "bar" => "baz", "handle" => "alpha" } }, + { "foo" => { "bar" => "qux", "handle" => "charlie" } }, ] assert_equal(expectation, @filters.uniq(input, "foo.bar", { "deep" => true })) end