You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add .download samples and ans_is_output flag (#436)
* partially implement draft for samples
* only set out path if necessary
* fix missing key
* only check necessary .out files
* use outpath if possible
* some types
* use string type name...
* fix union type?
* fix typing
* drop .out support
* dont warn here
* add .out support
* fix tests
* made ans=out assumption optional
* fix code
* allow ans validators for interactive and multipass problems
* add missing validator
* properly handle samples in export
* properly handle samples in export
* properly handle samples in export
* allow more answer validators
* properly find testcases
* [doc] Improve grammar in documentation
* [validate] Replace import of Union with string type hint
* hide A stat for interactive problems
* dont always create empty ans files
* add comment
* rename
* fix samples
* only drop known suffixes
* simplify code
* add more tests
* allow standalone in.statement
* removed outdated assert
* removed outdated if
* undo namechange
* update files
* remove wip file
* [export] bt samplezip: check for duplicate files from attachments/
* [validate] Skip sanity checks for empty .ans files for interactive problems
* [test] samplezip/zip: assert that the correct samples are in the zip files
* [test] Add samples for constants problem
* [export] build_problem_zip: Make sure that .*.download files also end up in the zip
* improve warning
* [problem] Problem._samples: split warning message for has_raw over multiple lines
* [export] Simplify getting of all samples: .interaction is included in KNOWN_DATA_EXTENSIONS
* [generate] For interactive and/or multi-pass samples, allow .in.download and .interaction when both .in and .in.statement are missing
Also generate empty .ans.statement or .ans.download files if they don't exist yet.
* simplify code
* i hate python tuples
* [generate] generate_empty_interactive_sample_ans: stop when .ans file exists
* [generate] Move generate_empty_interactive_sample_ans to later step
* generators.cue: Add '{in,ans}.{statement,download}' to #testcase
* [test] Fix test_schemata.sh: run from correct directory, replace {%placeholders%}
* [test] test_schemata.sh: Skip empty snippets for now
* [generate] Allow writing empty hardcoded files
Kinda ugly, but should be caught by validators and sanity checks anyway,
so having the check here should™ be redundant.
This does allow writing empty .{in,ans}.{statement,download} files,
which are _not_ sanity-checked.
---------
Co-authored-by: Maarten Sijm <[email protected]>
0 commit comments