Program prototype: Before the elementary school student four arithmetic program
Programming Language: Java
The test code is as follows:
1 PackageSuanfa;2 3 Import Staticorg.junit.assert.*;4 5 Importorg.junit.Test;6 7 Public classCoretest {8 9 @TestTen Public voidTestjia () { OneCore Core =NewCore (); A DoubleA = Core.jia (9,-3); - System.out.println (a); - } the - @Test - Public voidTestjian () { -Core Core =NewCore (); + DoubleA = Core.jian (9,-3); - System.out.println (a); + } A at @Test - Public voidTestcheng () { -Core Core =NewCore (); - DoubleA = Core.cheng (9,-3); - System.out.println (a); - } in - @Test to Public voidTestchu () { +Core Core =NewCore (); - DoubleA = Core.chu (9,-3); the System.out.println (a); * } $ Panax Notoginseng}
Test:
The pairing program has replaced the new player: Huang Xiungjun, blog address: http://www.cnblogs.com/huangxiongjun/
In this programming process, I am mainly responsible for the test of the program, the other team is responsible for the package.
Testing and encapsulation of four operational procedures