mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 08:53:31 +03:00
disable mixed comparison test
This commit is contained in:
parent
4ad7d9cba3
commit
11e2bd34be
@ -211,7 +211,7 @@ add_specs suite_builder =
|
||||
|
||||
(Ordering.hash x0) . should_equal (Ordering.hash x1)
|
||||
|
||||
group_builder.specify "should compare correctly to Integer and Float" <|
|
||||
group_builder.specify "should compare correctly to Integer and Float" pending = "https://github.com/enso-org/enso/issues/10163" <|
|
||||
values = []
|
||||
+ [[0.1, 0.1]]
|
||||
+ [["0.1", 0.1]]
|
||||
@ -312,7 +312,7 @@ add_specs suite_builder =
|
||||
|
||||
values.map pr->
|
||||
v = pr.at 0
|
||||
d = Decimal.new v . to_float
|
||||
d = Decimal.new v . remove_warnings
|
||||
expected = pr.at 1 . to_float
|
||||
|
||||
d . should_equal expected
|
||||
@ -347,16 +347,13 @@ add_specs suite_builder =
|
||||
(d <= d) . should_be_true
|
||||
(d >= d) . should_be_true
|
||||
|
||||
if v.is_a Float then
|
||||
qq = d <= v
|
||||
Problems.expect_only_warning Loss_Of_Numeric_Precision (d <= v)
|
||||
Problems.expect_only_warning Loss_Of_Numeric_Precision (d >= v)
|
||||
Problems.expect_only_warning Loss_Of_Numeric_Precision (v <= d)
|
||||
Problems.expect_only_warning Loss_Of_Numeric_Precision (v >= d)
|
||||
|
||||
Problems.expect_only_warning Loss_Of_Numeric_Precision (d < d)
|
||||
Problems.expect_only_warning Loss_Of_Numeric_Precision (d > d)
|
||||
Problems.expect_only_warning Loss_Of_Numeric_Precision (d <= d)
|
||||
Problems.expect_only_warning Loss_Of_Numeric_Precision (d >= d)
|
||||
|
||||
if greater.is_infinite.not then
|
||||
(d < greater) . should_be_true
|
||||
(d <= greater) . should_be_true
|
||||
|
Loading…
Reference in New Issue
Block a user