refactor objects
Some checks failed
Publish Image / publish (push) Waiting to run
Test / build (push) Waiting to run
Build / build (push) Has been cancelled

This commit is contained in:
2024-04-01 17:34:10 -04:00
parent 803f330e82
commit 99f7553d67
15 changed files with 101 additions and 94 deletions

View File

@@ -8,15 +8,15 @@ func TestStringHashKey(t *testing.T) {
diff1 := String{Value: "My name is johnny"}
diff2 := String{Value: "My name is johnny"}
if hello1.HashKey() != hello2.HashKey() {
if hello1.Hash() != hello2.Hash() {
t.Errorf("string with same content have different hash keys")
}
if diff1.HashKey() != diff2.HashKey() {
if diff1.Hash() != diff2.Hash() {
t.Errorf("string with same content have different hash keys")
}
if hello1.HashKey() == diff1.HashKey() {
if hello1.Hash() == diff1.Hash() {
t.Errorf("string with different content have same hash keys")
}
}