core: fixing new test

Removed the ‘hashcode’ function so we didn’t need to import it here,
but also removed the needed type assertion.
This commit is contained in:
Sander van Harmelen 2014-12-12 15:42:01 +01:00
parent db640cb1dc
commit 4c23019ab7
1 changed files with 1 additions and 1 deletions

View File

@ -1480,7 +1480,7 @@ func TestSchemaMap_Diff(t *testing.T) {
Optional: true,
Computed: true,
Set: func(v interface{}) int {
return len(v)
return len(v.(string))
},
},
},