How can I use the ANYKING P9 Pro to review an AI coding patch and run its tests?

Short answer. Keep the ticket and AI suggestion on the left P9 Pro panel, edit the diff on your laptop, and run tests on the right panel. Compare the patch against the original rule before accepting it.

On this page

Give the ticket, the patch and the tests a place

Imagine a shopper has exactly $50 of merchandise in their cart. The banner promises free shipping on orders of $50 or more, but checkout adds a delivery charge. An AI assistant has suggested a fix. Keep the promise on the left P9 Pro screen, along with the assistantโ€™s reply. Put the code diff on the laptop in front of your keyboard. Use the right P9 Pro screen for the terminal. Now you can read the original requirement while deciding whether each changed line belongs in the patch.

ANYKING P9 Pro mounted on a laptop, with different windows open across the left, center and right screens.
The two P9 Pro panels sit on either side of the laptop. Use an extended desktop to give each window its own space.

Reproduce the charge at exactly $50

In this Python example, the cart already stores its merchandise subtotal in integer cents. The function free_shipping(subtotal_cents) returns a Boolean. In the editor, write one parameterized test with the three amounts below. All three use the same shipping method and currency, so the only thing you change between cases is the subtotal.

  • $49.99 โ€” free_shipping(4999) should return False.
  • $50.00 โ€” free_shipping(5000) should return True.
  • $50.01 โ€” free_shipping(5001) should return True.

In the right-hand terminal, run those cases against the original code. With the existing comparison subtotal_cents > 5000, only the middle case should fail. If the result differs, check the test inputs and the function being called before reviewing the suggestion.

Check the suggested change against the ticket

Ask the assistant to show the smallest change that includes a subtotal of exactly 5,000 cents. In the center diff, check that > becomes >=, the threshold stays at 5000, and the return type stays Boolean. Reject a suggestion that rounds the subtotal to whole dollars first. It could also grant free shipping at $49.99. Reject a patch that edits the expected result for $50.00 to make the red test pass. The checkout banner on the left gives you the reason.

Three-screen code review diagram showing the shipping rule, the comparison change and three boundary tests.
The middle case is the one that changes when the $50.00 threshold becomes inclusive.

Rerun the cases and make the review decision

Save the patch and rerun the same three cases. For a pytest file named test_shipping.py containing just these three parameterized cases, the expected summary is 3 passed. Then run your projectโ€™s broader checkout tests. Keep their output visible on the right while you check the final diff for unrelated changes. In your review note, record the failing amount, the one-line fix and the tests you actually ran.

Connect the two P9 Pro panels for separate windows

The P9 Pro holds both side panels in one folding frame. That lets you take the same three-window review from your desk to a team room and keep the laptop keyboard centered under the patch you are editing.

Your laptop must support two independent external displays with its own screen active. Connect two video-capable USB-C outputs to TYPE-C1 and TYPE-C2, or use one video-capable USB-C output and the supplied HDMI-to-Type-C cable from the laptopโ€™s HDMI output. For the HDMI setup, connect separate power to PD. Choose extended desktop and arrange the displays in physical order. For mounting and cable diagrams, follow the P9 Pro first-time setup guide.

View the ANYKING P9 Pro Full HD.