mirror of
https://github.com/enso-org/enso.git
synced 2024-11-22 22:10:15 +03:00
Remove pending tests for hash consistency. (#9588)
This commit is contained in:
parent
a474955e28
commit
4971907914
@ -199,7 +199,7 @@ add_specs suite_builder =
|
||||
(Comparable.hash_builtin x0) . should_equal (Comparable.hash_builtin x1)
|
||||
|
||||
group_builder.specify "should compare correctly to Integer and Float" <|
|
||||
ok_values = []
|
||||
values = []
|
||||
+ [[0.1, 0.1]]
|
||||
+ [["0.1", 0.1]]
|
||||
+ [["0", 0]]
|
||||
@ -297,16 +297,6 @@ add_specs suite_builder =
|
||||
+ [[Float.max_value-1.0, Float.max_value-1.0]]
|
||||
+ [[-Float.max_value+1.0, -Float.max_value+1.0]]
|
||||
|
||||
problematic_values = []
|
||||
+ [[9223372036854776000.0, 9223372036854776000.0]]
|
||||
+ [[-9223372036854776000.0, -9223372036854776000.0]]
|
||||
+ [["9223372036854776000.0", 9223372036854776000.0]]
|
||||
+ [["-9223372036854776000.0", -9223372036854776000.0]]
|
||||
|
||||
# TODO: Include problematic values pending https://github.com/enso-org/enso/issues/9296.
|
||||
values = ok_values # + problematic_values
|
||||
_ = [problematic_values]
|
||||
|
||||
values.map pr->
|
||||
v = pr.at 0
|
||||
d = Decimal.new v
|
||||
|
@ -611,16 +611,6 @@ add_specs suite_builder =
|
||||
3.truncate . should_equal 3
|
||||
-3.truncate . should_equal -3
|
||||
|
||||
suite_builder.group "Hashing" group_builder->
|
||||
# TODO: Pending https://github.com/enso-org/enso/issues/9296
|
||||
group_builder.specify "Hash consistency for values near Double.MIN/MAX_VALUE" pending="hash consistency" <|
|
||||
ok_values = [9223372036854775000, -9223372036854775000]
|
||||
bad_values = [9223372036854776000, -9223372036854776000]
|
||||
values = ok_values + bad_values
|
||||
values.map i->
|
||||
f = i.to_float
|
||||
(Comparable.hash_builtin f) . should_equal (Comparable.hash_builtin i)
|
||||
|
||||
suite_builder.group "Number Conversions" group_builder->
|
||||
group_builder.specify "Complex plus Integer" <|
|
||||
v1 = (Complex.new 1 2) + (Complex.new 3)
|
||||
|
Loading…
Reference in New Issue
Block a user