package main import ( "testing" ) func TestExample(t *testing.T) { if encode(500) != [4]byte{244, 1, 0, 0} { t.Fatal("wrong encoding") } }