Skip to content

Instantly share code, notes, and snippets.

@rdammkoehler
Created August 29, 2011 18:15
Show Gist options
  • Save rdammkoehler/1178996 to your computer and use it in GitHub Desktop.
Save rdammkoehler/1178996 to your computer and use it in GitHub Desktop.
Some foolishness that I played with today
package silly;
import org.junit.Test;
public class ReallyDont {
public boolean doIt() { return true; }
public void reallyReally() {
if ( !!!doIt() ) {
System.out.println("I'm doing it");
} else {
System.out.println("Ok, I won't do it, *gawd*");
}
}
@Test
public void shouldReallyNotDoIt() {
new ReallyDont().reallyReally();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment