Last active
February 29, 2024 15:07
-
-
Save mcsee/20c94ec159e6333ddd5891b4af0d5688 to your computer and use it in GitHub Desktop.
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
public abstract class SetTest { | |
protected abstract Set<String> constructor(); | |
@Test | |
public final void testAddEmpty() { | |
Set<String> s = this.constructor(); | |
s.add("green"); | |
s.add("blue"); | |
assertEquals("{green. blue}", s.toString()); | |
// This is fragile | |
// since it depends on set sort (which is not defined) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment