package crypt

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestSHA256Sum_Good(t *testing.T) {
	data := []byte("hello")
	expected := "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"

	result := SHA256Sum(data)
	assert.Equal(t, expected, result)
}

func TestSHA512Sum_Good(t *testing.T) {
	data := []byte("hello")
	expected := "9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043"

	result := SHA512Sum(data)
	assert.Equal(t, expected, result)
}
