Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix NotRan typo #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion coordinator/Model/TestSuite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public enum TestResultKind {
TimeLimitExceeded = 4,
MemoryLimitExceeded = 5,
ShouldFail = 6,
NotRan = -1,
NotRun = -1,
Waiting = -2,
Running = -3,
OtherError = -100,
Expand Down
2 changes: 1 addition & 1 deletion docs/manual/results.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
| PF | PipelineFailed | 运行时有某一步输出不为 0 |
| TLE | TimeLimitExceeded | 超时了 |
| MLE | MemoryLimitExceeded | 占用内存过大 |
| NR | NotRan | 没有运行 |
| NR | NotRun | 没有运行 |
| OE | OtherError | 出现了其他错误(通常是评测机的问题) |
4 changes: 2 additions & 2 deletions judger/src/client/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub enum TestResultKind {
TimeLimitExceeded = 4,
MemoryLimitExceeded = 5,
ShouldFail = 6,
NotRan = -1,
NotRun = -1,
Waiting = -2,
Running = -3,
OtherError = -100,
Expand Down Expand Up @@ -203,7 +203,7 @@ pub async fn transform_and_upload_test_result(
Some("The tested program should return a non-zero number at some point".into()),
None,
),
JobFailure::Cancelled => (TestResultKind::NotRan, None, None),
JobFailure::Cancelled => (TestResultKind::NotRun, None, None),
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class JobTestItemComponent implements OnInit {
return 'AC';
case 'MemoryLimitExceeded':
return 'MLE';
case 'NotRan':
case 'NotRun':
return 'NR';
case 'OtherError':
return 'OE';
Expand Down
4 changes: 2 additions & 2 deletions web/src/models/job-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function dashboardTypeToSlider(item: TestResultKind): SliderItemKind {
return 'error';
case 'MemoryLimitExceeded':
return 'warn';
case 'NotRan':
case 'NotRun':
return 'cancel';
case 'OtherError':
return 'info-alt';
Expand Down Expand Up @@ -104,7 +104,7 @@ export type TestResultKind =
| 'TimeLimitExceeded'
| 'MemoryLimitExceeded'
| 'ShouldFail'
| 'NotRan'
| 'NotRun'
| 'Waiting'
| 'Running'
| 'OtherError';
Expand Down