Out out the test of the quiz
- 211606387 Yehongchi
- 211606354 Shaun Chen Yu
Unit Test
- Explain the idea of designing unit tests
Unit tests a test based on your own code, such as selecting a grade method, and adding a return value to this method
- Select part of the unit test code published in the blog, and explain the function of testing, the idea of constructing test data
@Test
public void Testrandomnumber () {
New MathExam6387 ();
String[] Strarr = {"1", "2", "+"};
Assertequals ("3", Mathexam6387.reversepolish (Strarr));
}
An array of instances to test the results of the inverse Polish function. It is expected to be "3", which is actually "3".
- The test coverage of unit tests is attached to the blog.
Structural optimization
UML class diagram for the program in the blog
A flowchart for running a program in a blog
Detailing the part of the refactoring that the program makes and the reason for the refactoring
Randomnumber ();
Each grade has a random number, which is extracted.
Performance tuning
- Results of pre-optimization performance analysis tool placement
- Describe a program's performance bottleneck
- Give the optimization scheme
- Results of post-optimization performance analysis tools
Out out the test of the quiz