Example #1
0
func TestUnmarshalFull(t *testing.T) {
	record := ff.Number{}
	err := record.UnmarshalJSON([]byte(numberJson))
	if err != nil {
		t.Fatalf("UnmarshalJSON: %v", err)
	}
}
Example #2
0
func TestUnmarshalEmpty(t *testing.T) {
	record := ff.Number{}
	err := record.UnmarshalJSON([]byte(`{}`))
	if err != nil {
		t.Fatalf("UnmarshalJSON: %v", err)
	}
}