Created
May 11, 2011 01:18
-
-
Save willf/965733 to your computer and use it in GitHub Desktop.
TestOutOfBounds that doesn't work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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