有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

在IntelliJ Idea的CHelper插件中跳过java获取测试用例

我正在为IntelliJ Idea使用CHelper插件。每次编写代码并编译时,我都会得到如下输出:

Test #0: SKIPPED


Test #1: SKIPPED



Test #2: SKIPPED


Test #3:
Input:
10 4
40 10 20 70 80 10 20 70 80 60

Expected output:
40
Execution result:
70

Verdict: Wrong Answer (Difference in token #0) in 0.000 s.

------------------------------------------------------------------

Test results:

Process finished with exit code 0

这里测试#4的输出是错误的。但如果所有测试用例的输出都正确,则会显示以下输出:

Test #0: Input: 5 3 10 30 40 50 20

Expected output: 30

Execution result: 30

Verdict: OK in 0.000 s.


Test #1: Input: 3 1 10 20 10

Expected output: 20

Execution result: 20

Verdict: OK in 0.001 s.


Test #2: Input: 2 100 10 10

Expected output: 0

Execution result: 0

Verdict: OK in 0.000 s.


Test #3: Input: 10 4 40 10 20 70 80 10 20 70 80 60

Expected output: 70 Execution result: 70

Verdict: OK in 0.000 s.

------------------------------------------------------------------

Test results: All test passed input 0.001 s.

Process finished with exit code 0

我无法理解为什么要跳过测试用例。有人能解释为什么会这样吗?如果是,如何防止跳过测试用例


共 (0) 个答案