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