1 /* 2 * Copyright (C) 2008 The Guava Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.google.common.math; 17 public class BigIntegerMathTest_gwt extends com.google.gwt.junit.client.GWTTestCase { getModuleName()18@Override public String getModuleName() { 19 return "com.google.common.math.testModule"; 20 } testBinomialOutside()21public void testBinomialOutside() throws Exception { 22 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 23 testCase.testBinomialOutside(); 24 } 25 testBinomialSmall()26public void testBinomialSmall() throws Exception { 27 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 28 testCase.testBinomialSmall(); 29 } 30 testFactorial()31public void testFactorial() throws Exception { 32 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 33 testCase.testFactorial(); 34 } 35 testFactorial0()36public void testFactorial0() throws Exception { 37 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 38 testCase.testFactorial0(); 39 } 40 testFactorialNegative()41public void testFactorialNegative() throws Exception { 42 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 43 testCase.testFactorialNegative(); 44 } 45 testIsPowerOfTwo()46public void testIsPowerOfTwo() throws Exception { 47 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 48 testCase.testIsPowerOfTwo(); 49 } 50 testLog2Ceiling()51public void testLog2Ceiling() throws Exception { 52 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 53 testCase.testLog2Ceiling(); 54 } 55 testLog2Exact()56public void testLog2Exact() throws Exception { 57 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 58 testCase.testLog2Exact(); 59 } 60 testLog2Floor()61public void testLog2Floor() throws Exception { 62 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 63 testCase.testLog2Floor(); 64 } 65 testLog2HalfDown()66public void testLog2HalfDown() throws Exception { 67 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 68 testCase.testLog2HalfDown(); 69 } 70 testLog2HalfEven()71public void testLog2HalfEven() throws Exception { 72 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 73 testCase.testLog2HalfEven(); 74 } 75 testLog2HalfUp()76public void testLog2HalfUp() throws Exception { 77 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 78 testCase.testLog2HalfUp(); 79 } 80 testLog2NegativeAlwaysThrows()81public void testLog2NegativeAlwaysThrows() throws Exception { 82 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 83 testCase.testLog2NegativeAlwaysThrows(); 84 } 85 testLog2ZeroAlwaysThrows()86public void testLog2ZeroAlwaysThrows() throws Exception { 87 com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest(); 88 testCase.testLog2ZeroAlwaysThrows(); 89 } 90 } 91