diff --git a/microdata_test.go b/microdata_test.go index ba11e5a..87d0fcb 100644 --- a/microdata_test.go +++ b/microdata_test.go @@ -251,7 +251,7 @@ func TestReadTwoValues(t *testing.T) { item := ReadOneItem(html, t) if len(item.properties["flavor"]) != 2 { - t.Errorf("Expecting 2 items but got %d",len(item.properties["flavor"]) ) + t.Errorf("Expecting 2 values but got %d",len(item.properties["flavor"]) ) } if item.properties["flavor"][0].(string) != "Lemon sorbet" { t.Errorf("Property value 'Lemon sorbet' not found") @@ -262,3 +262,26 @@ func TestReadTwoValues(t *testing.T) { } + +func TestReadTwoPropertiesOneValue(t *testing.T) { + html := ` +