• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 IntMathTest_gwt extends com.google.gwt.junit.client.GWTTestCase {
getModuleName()18 @Override public String getModuleName() {
19   return "com.google.common.math.testModule";
20 }
testBinomial()21 public void testBinomial() throws Exception {
22   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
23   testCase.testBinomial();
24 }
25 
testBinomialNegative()26 public void testBinomialNegative() throws Exception {
27   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
28   testCase.testBinomialNegative();
29 }
30 
testBinomialOutside()31 public void testBinomialOutside() throws Exception {
32   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
33   testCase.testBinomialOutside();
34 }
35 
testCeilingPowerOfTwo()36 public void testCeilingPowerOfTwo() throws Exception {
37   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
38   testCase.testCeilingPowerOfTwo();
39 }
40 
testCeilingPowerOfTwoNegative()41 public void testCeilingPowerOfTwoNegative() throws Exception {
42   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
43   testCase.testCeilingPowerOfTwoNegative();
44 }
45 
testCeilingPowerOfTwoZero()46 public void testCeilingPowerOfTwoZero() throws Exception {
47   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
48   testCase.testCeilingPowerOfTwoZero();
49 }
50 
testCheckedAdd()51 public void testCheckedAdd() throws Exception {
52   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
53   testCase.testCheckedAdd();
54 }
55 
testCheckedMultiply()56 public void testCheckedMultiply() throws Exception {
57   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
58   testCase.testCheckedMultiply();
59 }
60 
testCheckedPow()61 public void testCheckedPow() throws Exception {
62   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
63   testCase.testCheckedPow();
64 }
65 
testCheckedSubtract()66 public void testCheckedSubtract() throws Exception {
67   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
68   testCase.testCheckedSubtract();
69 }
70 
testConstantsBiggestBinomials()71 public void testConstantsBiggestBinomials() throws Exception {
72   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
73   testCase.testConstantsBiggestBinomials();
74 }
75 
testDivByZeroAlwaysFails()76 public void testDivByZeroAlwaysFails() throws Exception {
77   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
78   testCase.testDivByZeroAlwaysFails();
79 }
80 
testDivNonZero()81 public void testDivNonZero() throws Exception {
82   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
83   testCase.testDivNonZero();
84 }
85 
testDivNonZeroExact()86 public void testDivNonZeroExact() throws Exception {
87   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
88   testCase.testDivNonZeroExact();
89 }
90 
testFactorial()91 public void testFactorial() throws Exception {
92   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
93   testCase.testFactorial();
94 }
95 
testFactorialNegative()96 public void testFactorialNegative() throws Exception {
97   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
98   testCase.testFactorialNegative();
99 }
100 
testFloorPowerOfTwo()101 public void testFloorPowerOfTwo() throws Exception {
102   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
103   testCase.testFloorPowerOfTwo();
104 }
105 
testFloorPowerOfTwoNegative()106 public void testFloorPowerOfTwoNegative() throws Exception {
107   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
108   testCase.testFloorPowerOfTwoNegative();
109 }
110 
testFloorPowerOfTwoZero()111 public void testFloorPowerOfTwoZero() throws Exception {
112   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
113   testCase.testFloorPowerOfTwoZero();
114 }
115 
testGCD()116 public void testGCD() throws Exception {
117   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
118   testCase.testGCD();
119 }
120 
testGCDNegativePositiveThrows()121 public void testGCDNegativePositiveThrows() throws Exception {
122   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
123   testCase.testGCDNegativePositiveThrows();
124 }
125 
testGCDNegativeZeroThrows()126 public void testGCDNegativeZeroThrows() throws Exception {
127   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
128   testCase.testGCDNegativeZeroThrows();
129 }
130 
testGCDZero()131 public void testGCDZero() throws Exception {
132   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
133   testCase.testGCDZero();
134 }
135 
testLessThanBranchFree()136 public void testLessThanBranchFree() throws Exception {
137   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
138   testCase.testLessThanBranchFree();
139 }
140 
testLog2Exact()141 public void testLog2Exact() throws Exception {
142   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
143   testCase.testLog2Exact();
144 }
145 
testLog2MatchesBigInteger()146 public void testLog2MatchesBigInteger() throws Exception {
147   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
148   testCase.testLog2MatchesBigInteger();
149 }
150 
testLog2NegativeAlwaysThrows()151 public void testLog2NegativeAlwaysThrows() throws Exception {
152   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
153   testCase.testLog2NegativeAlwaysThrows();
154 }
155 
testLog2ZeroAlwaysThrows()156 public void testLog2ZeroAlwaysThrows() throws Exception {
157   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
158   testCase.testLog2ZeroAlwaysThrows();
159 }
160 
testMaxSignedPowerOfTwo()161 public void testMaxSignedPowerOfTwo() throws Exception {
162   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
163   testCase.testMaxSignedPowerOfTwo();
164 }
165 
testMod()166 public void testMod() throws Exception {
167   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
168   testCase.testMod();
169 }
170 
testModNegativeModulusFails()171 public void testModNegativeModulusFails() throws Exception {
172   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
173   testCase.testModNegativeModulusFails();
174 }
175 
testModZeroModulusFails()176 public void testModZeroModulusFails() throws Exception {
177   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
178   testCase.testModZeroModulusFails();
179 }
180 
testZeroDivIsAlwaysZero()181 public void testZeroDivIsAlwaysZero() throws Exception {
182   com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest();
183   testCase.testZeroDivIsAlwaysZero();
184 }
185 }
186