To test this snippet, just press the play button (green triangle), and it will run in debug mode.
为了测试该代码片段,只须按play(运行)按钮(绿色三角形),它就会在调试模式下运行。
The Pythagorean Theorem tells us that a 3-4-5 triangle is a right triangle, so we can simply test for sides of 3, 4, and 5.
勾股定理(Pythagorean Theorem)告诉我们边长为3、4和5的三角形是直角三角形,因此可以使用边长3、4和5来简单地测试。
The triangle tester example has a total of seven test methods, but it has twenty-three distinct tests.
三角形测试实例一共有七个测试方法,但有二十三个截然不同的测试。
应用推荐