Sha256: 4c226c9ce1747fdf6c409c2053ff5bb0109ed9c2230ee5e2946d3a0865a2ad85
Contents?: true
Size: 617 Bytes
Versions: 396
Compression:
Stored size: 617 Bytes
Contents
import static org.junit.Assert.assertEquals; import org.junit.Test; import org.junit.Ignore; public class TrinaryTest { @Test public void testNonTrinaryCharacterIsZero() { assertEquals(0, Trinary.toDecimal("-")); } @Ignore @Test public void testNonTrinaryNumberIsZero() { assertEquals(0, Trinary.toDecimal("3")); } @Ignore @Test public void testTrinaryWithNonTrinaryIsZero() { assertEquals(0, Trinary.toDecimal("102-12")); } @Ignore @Test public void testTrinary() { assertEquals(302, Trinary.toDecimal("102012")); } }
Version data entries
396 entries across 396 versions & 1 rubygems