BlockchainCommons / BlockchainCommons/bc-lifehash-python
Modes not working -> Extend unit test
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 1
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Hy dear LifeHash developers,
nice project. Yet, using you code with python 3.13 sadly made some issues.
It seems you are expecting to have the "+" operator to be defined on a hashlib.sha256 as well as hashlib.sha256 on another hashlib.sha256 ( sha256(sha256(bytes)) ).
lifehash/lifehash.py line 1024 thus fails. I think you just need to add a few .digest() here and there.
I get why you did not see that. I strongly suggest to extend you unit tests to test *all* modes for you LifeHash. Currently you only test version2.
Guía de contribución
Línea de trabajo
Comienza en lifehash/lifehash.py, línea 1024, e inspecciona cómo se combinan los valores de hashlib.sha256 en Python 3.13. Revisa las pruebas unitarias existentes, que actualmente solo cubren version2, y luego ejecútalas mientras compruebas los otros modos de LifeHash. Se considera terminado cuando se haya gestionado la ruta de hashing que falla y las pruebas cubran todos los modos.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- testing
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 48/100