?????????????????????????
???????????? ???????[ 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??????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11