Created
January 4, 2012 20:04
-
-
Save joshareed/1561792 to your computer and use it in GitHub Desktop.
Groovy Assert Gotcha
This file contains hidden or 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
def sb = new StringBuffer("Foo") | |
def foo = "Foo" | |
assert sb == foo | |
/** | |
assert sb == foo | |
| | | | |
Foo| Foo | |
false | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment