Skip to content

Instantly share code, notes, and snippets.

@willf
Created May 11, 2011 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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