* Ensures output is either 1 (for all inputs > 0), or 0.
*/
@Test
public void testTF() {
DefaultSimilarity sim = new BinarySimilarity();
assertEquals("big positive number", 1, (int)Math.round(sim.tf(999)));
assertEquals("slightly more than 1", 1, (int)Math.round(sim.tf(2)));
assertEquals("just 1", 1, (int)Math.round(sim.tf(1)));
assertEquals("slightly less than 1", 0, (int)Math.round(sim.tf(0)));
assertEquals("big negative number", 0, (int)Math.round(sim.tf(-999)));
}