Skip to content

Instantly share code, notes, and snippets.

@willf
Created May 11, 2011 01:18
Show Gist options
  • Save willf/965733 to your computer and use it in GitHub Desktop.
Save willf/965733 to your computer and use it in GitHub Desktop.
TestOutOfBounds that doesn't work
func TestIsBad(t *testing.T) {
v := MakeBitSet(64)
defer recover()
v.SetBit(100)
t.Fail()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment