?????????????????????????
???????????? ???????[ 2015/7/24 10:15:58 ] ??????????????? ???????
?????????????JUnit4????????????????????
????????????????JUnit????????????????????????????CoreTest??????????????CoreTest????????????????CoreTest???????£?
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class CoreTest {
private static Core core=new Core();
@Before
public void setUp() throws Exception {
}
@Test
public void testFhum1() {
core.Fhum1(3?? 5?? '+');
assertEquals(8??core.getResult());
fail("??δ???");
}
@Test
public void testFhum2() {
core.Fhum2(3?? 5?? 2?? '*'?? '+');
assertEquals(17??core.getResult());
fail("??δ???");
}
@Test
public void testFhum3() {
core.Fhum3(5?? 3?? 2?? 4?? '+'??'-' ?? '+');
assertEquals(10??core.getResult());
fail("??δ???");
}
}
?????????в??????????£?
??????в????
??????????
?????????????????????????????????????С???????????? ?????????????????????????????????з?????????????????????£?
????1.???????е?????????????????????????У??????С??????????????????????
????2.????????????5????????????????????????????????????????????????
????3.???????????????????°??????????????δ?????????????????????????????????????о????????????
????4.???????????????????5/3??????1??????????????????????????
??????????????У?????????????????????????????????????????????????????????????????????о???????????????
???????е?????У??????????в?????????????????????????????????????ν?????????????????????????????????????e??????????????????????????????????????????
??????

???·???
App??С????H5?????????????????Щ??
2024/9/11 15:34:34?????????????????????????
2024/9/10 11:13:49P-One ???????????????????????????????????????
2024/9/10 10:14:12???????????????????????????
2024/9/9 18:04:26??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44