package tape import "testing" func TestIntBytes(test *testing.T) { if correct, got := 1, IntBytes(0); correct != got { test.Fatal("wrong:", got) } if correct, got := 1, IntBytes(1); correct != got { test.Fatal("wrong:", got) } if correct, got := 1, IntBytes(16); correct != got { test.Fatal("wrong:", got) } if correct, got := 1, IntBytes(255); correct != got { test.Fatal("wrong:", got) } if correct, got := 2, IntBytes(256); correct != got { test.Fatal("wrong:", got) } }