@Test
public void testNear2DaysAgo() throws Exception
{
int hour = 1000 * 60 * 60;
PrettyTime t = new PrettyTime(new Date(hour * 24 * 2 - 11*hour), locale);
assertEquals("2 päivää sitten", t.format(new Date(0)));
t = new PrettyTime(new Date(hour * 24 * 2 - 13*hour), locale);
assertEquals("eilen", t.format(new Date(0)));
}
@Test