You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
openFable.Core.TestingtypeSmallRecord2={ optionalField :string option }leta= Ok({ optionalField = None })letb= Ok({ optionalField = None })// printfn "%A" (a = b) This version of the equality crash too
printfn "%A"(Assert.AreEqual(a, b,""))
Error:
Watching ../..
Traceback (most recent call last):
File "/Users/mmangel/Workspaces/Github/thoth-org/Thoth.Json/tests/Thoth.Json.Tests.Python/./fableBuild/./Main.py", line 118, in <module>
main(sys.argv[1:])
File "/Users/mmangel/Workspaces/Github/thoth-org/Thoth.Json/tests/Thoth.Json.Tests.Python/./fableBuild/./Main.py", line 112, in main
arg: None = assert_equal(a, b, "")
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mmangel/Workspaces/Github/thoth-org/Thoth.Json/tests/Thoth.Json.Tests.Python/fableBuild/fable_modules/fable_library/util.py", line 352, in assert_equal
if not equals(actual, expected):
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mmangel/Workspaces/Github/thoth-org/Thoth.Json/tests/Thoth.Json.Tests.Python/fableBuild/fable_modules/fable_library/util.py", line 226, in equals
return a == b
^^^^^^
File "/Users/mmangel/Workspaces/Github/thoth-org/Thoth.Json/tests/Thoth.Json.Tests.Python/fableBuild/fable_modules/fable_library/types.py", line 99, in __eq__
return self.fields == other.fields
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mmangel/Workspaces/Github/thoth-org/Thoth.Json/tests/Thoth.Json.Tests.Python/fableBuild/fable_modules/fable_library/types.py", line 185, in __eq__
return self.Equals(other)
^^^^^^^^^^^^^^^^^^
File "/Users/mmangel/Workspaces/Github/thoth-org/Thoth.Json/tests/Thoth.Json.Tests.Python/fableBuild/fable_modules/fable_library/types.py", line 170, in Equals
return record_equals(self, other)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mmangel/Workspaces/Github/thoth-org/Thoth.Json/tests/Thoth.Json.Tests.Python/fableBuild/fable_modules/fable_library/types.py", line 146, in record_equals
return record_compare_to(self, other) == 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mmangel/Workspaces/Github/thoth-org/Thoth.Json/tests/Thoth.Json.Tests.Python/fableBuild/fable_modules/fable_library/types.py", line 123, in record_compare_to
if self.__dict__[name] < other.__dict__.get(name):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'
Expected and actual results
Equality test should not crash
Related information
Fable version: 3.5.0
Operating system: OSX
The text was updated successfully, but these errors were encountered:
Description
Error:
Expected and actual results
Equality test should not crash
Related information
3.5.0
The text was updated successfully, but these errors were encountered: