MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / testPow2_int

Method testPow2_int

JSAT/test/jsat/math/FastMathTest.java:110–116  ·  view source on GitHub ↗

Test of pow2 method, of class FastMath.

()

Source from the content-addressed store, hash-verified

108 * Test of pow2 method, of class FastMath.
109 */
110 @Test
111 public void testPow2_int()
112 {
113 System.out.println("pow2");
114 for(int i = 0; i < 20; i++)
115 assertEquals(Math.pow(2,i), FastMath.pow2(i), 0.0);//docs say it must be exact
116 }
117
118 /**
119 * Test of pow2 method, of class FastMath.

Callers

nothing calls this directly

Calls 2

pow2Method · 0.95
powMethod · 0.45

Tested by

no test coverage detected