From 507189b1d4d93de8ff5784b20a4a46efe9d0a2a4 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 24 Jun 2018 21:26:59 +0200 Subject: [PATCH] Reduced test fails for some platforms. --- testdata/ruby/tlTest.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testdata/ruby/tlTest.rb b/testdata/ruby/tlTest.rb index aa558d616..1d9522b79 100644 --- a/testdata/ruby/tlTest.rb +++ b/testdata/ruby/tlTest.rb @@ -68,7 +68,7 @@ class Tl_TestClass < TestBase expr = RBA::Expression::new("[a[1],a[2],a[0],a[4],a[3]]", { "a" => [ 17, "a", nil, [ 2, 7 ], { 8 => "x", "u" => 42 } ] }) res = expr.eval assert_equal(res.class.to_s, "Array") - assert_equal(res.inspect, "[\"a\", nil, 17, {8=>\"x\", \"u\"=>42}, [2, 7]]") + assert_equal(res.inspect, ["a", nil, 17, {8=>"x", "u"=>42}, [2, 7]].inspect) expr = RBA::Expression::new("a[1]", { "a" => [ 17, "a", nil, [ 2, 7 ], { 8 => "x", "u" => 42 } ] }) res = expr.eval @@ -78,7 +78,7 @@ class Tl_TestClass < TestBase expr = RBA::Expression::new("a[4]", { "a" => [ 17, "a", nil, [ 2, 7 ], { 8 => "x", "u" => 42 } ] }) res = expr.eval assert_equal(res.class.to_s, "Hash") - assert_equal(res.inspect, "{8=>\"x\", \"u\"=>42}") + assert_equal(res.inspect, {8=>"x", "u"=>42}.inspect) end