package test.leecode.math; import org.junit.Assert; import org.junit.Test; import cn.fansunion.leecode.math.ThreeDivisors; /** * @author wen.lei@brgroup.com * * 2022-2-25 */ public class ThreeDivisorsTest @Test public void test() ThreeDivisors test = new ThreeDivisors(); Assert.assertFalse(test.isThree( 1 )); Assert.assertFalse(test.isThree( 2 )); Assert.assertFalse(test.isThree( 3 )); Assert.assertTrue(test.isThree( 4 )); Assert.assertFalse(test.isThree( 5 )); Assert.assertFalse(test.isThree( 6 )); Assert.assertFalse(test.isThree( 16 )); Assert.assertTrue(test.isThree( 25 )); Assert.assertFalse(test.isThree( 124 ));
|