Provide a Replacement for hash "correct Tag" Test
stenolog opened this issue · comments
This test:
scrypto/shared/src/test/scala/scorex/crypto/hash/HashTest.scala
Lines 59 to 69 in 1d2db26
is not functional within scala 2.
This came up during work on
Reproduce
- just replace 32/64
hash.DigestSize shouldBe 32
with a wrong value, the test will not fail. - or: add breakpoints to lines 64 and 66
- or: add
else { fail("Tag is not Digest32 or Digest64") }
to line 67 - #108 (review) (reproducer in CI)
Tasks
- disable the non-functioning part
- find a solution to have the Tag available in runtime
- provide a new test (for scala 2 and 3)
Potential fix: pull-108-2fa4a7e