refactor objects
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user