Reduced test fails for some platforms.

This commit is contained in:
Matthias Koefferlein 2018-06-24 21:26:59 +02:00
parent 03b25e37bd
commit 507189b1d4
1 changed files with 2 additions and 2 deletions

View File

@ -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