Remove pending tests for hash consistency. (#9588)

This commit is contained in:
GregoryTravis 2024-04-03 13:47:46 -04:00 committed by GitHub
parent a474955e28
commit 4971907914
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 21 deletions

View File

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

View File

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