Skip to content

HashUnitTest Hash5 Hash256 Faild #306

@hks2002

Description

@hks2002

See the result in VS 2022
image

D:\DownLoads\trantor-master\trantor\unittests\HashUnittest.cc(12): error: Expected equality of these values:
  toHexString(md5("hello"))
    Which is: "604E0000FE2E00005D600000D5D70000"
  "5D41402ABC4B2A76B9719D911017C592"

D:\DownLoads\trantor-master\trantor\unittests\HashUnittest.cc(13): error: Expected equality of these values:
  toHexString(md5("trantor"))
    Which is: "37490000DBA1000034D30000ACCA0000"
  "95FC641C9E629D2854B0B60F5A51E1FD"

D:\DownLoads\trantor-master\trantor\unittests\HashUnittest.cc(28): error: Expected equality of these values:
  toHexString(sha256("hello"))
    Which is: "0000A7190000A86500006FA10000B2010000BA3B0000872D00007A1A000001C7"
  "2CF24DBA5FB0A30E26E83B2AC5B9E29E1B161E5C1FA7425E73043362938B9824"

D:\DownLoads\trantor-master\trantor\unittests\HashUnittest.cc(31): error: Expected equality of these values:
  toHexString(sha256("trantor"))
    Which is: "0000C1150000FF010000468B000022340000D1AD00001049000020A20000461D"
  "C72002E712A3BA6D60125D4B3D0B816758FBDCA98F2A892077BD4182E71CF6F5"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions