Skip to content

Commit

Permalink
Make YAML files in doc/, problems/ conform
Browse files Browse the repository at this point in the history
  • Loading branch information
thorehusfeldt committed Mar 5, 2024
1 parent 785bc0d commit 5a16614
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 24 deletions.
5 changes: 1 addition & 4 deletions doc/generators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,7 @@ data:
hard_cases_group:
# Directories may contain a testdata.yaml that will be written as specified.
testdata.yaml:
on_reject: break
accept_score: "25"
range: 0 25
grader_flags: min
output_validator_flags: space_change_sensitive

# To enable automatic numbering of testcases, data: may also contain a list of
# single-element dictionaries instead of a single dictionary. In this case,
Expand Down
4 changes: 2 additions & 2 deletions test/problems/generatorincludes/generators/generators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ data:
data:
- small:
testdata.yaml:
input_validator_flags: --small
input_validators:
output_validator_flags: space_change_sensitive
input_validator_flags:
connected: --small
strongly-connected: --small
data:
Expand Down
21 changes: 3 additions & 18 deletions test/problems/identity/generators/generators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ solution: /submissions/accepted/author.py
random_salt: "abc"

generators:
main.py:
main_py:
- main.py
- lib.py
main.cpp:
main_cpp:
- main.cpp
- lib.h
main.c:
main_c:
- main.c
- lib.h

Expand Down Expand Up @@ -68,21 +68,11 @@ data:
data:
stdoutpy: stdout.py 200
stdoutcpp: stdout.cpp 201
<<<<<<< HEAD
# {name} should always just be `testcase` now.
inans_old: write_in_and_ans_old.py {name} 212
inans: write_in_and_ans.py 202
hintdesc: hint_desc.py 203
main.py: main.py 204
main.c: main.c 205
main.cpp: main.cpp 206
=======
inans: write_in_and_ans.py 202
hintdesc: hint_desc.py 203
main_py: main_py 204
main_c: main_c 205
main_cpp: main_cpp 206
>>>>>>> 14aa7d1 (identity: ensure valid YAML)
numbered_group:
data:
- dir: dir 300
Expand All @@ -105,8 +95,6 @@ data:
- "": stdout.py 131
- "": stdout.py 132 # 10.in
seeding:
testdata.yaml:
arbitrary_key: some_value
solution: /submissions/accepted/author.cpp
random_salt: "def"
data:
Expand Down Expand Up @@ -177,8 +165,6 @@ data:
non_empty_group_6:
data:
- "": stdout.py 503
has_type:
type: directory
json:
{
data:
Expand All @@ -188,6 +174,5 @@ data:
{ "": stdout.py 602 },
],
}
unknown_key:

unknown_key:

0 comments on commit 5a16614

Please sign in to comment.