Out out the test of the quiz

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.