Skip to content

Commit

Permalink
feat: add default value for TestCaseDefinition::should_fail and test_out
Browse files Browse the repository at this point in the history
  • Loading branch information
lynzrand committed Oct 27, 2020
1 parent 4ba1766 commit a2a2226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions judger/src/tester/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ mod de {
}

let name = check_field!(name);
let should_fail = check_field!(should_fail);
let has_out = check_field!(has_out);
let should_fail = should_fail.unwrap_or(false);
let has_out = has_out.unwrap_or(true);

Ok(TestCaseDefinition {
name,
Expand Down

0 comments on commit a2a2226

Please sign in to comment.