Skip to main content

Module testcase_yaml

Module testcase_yaml 

Source
Expand description

cargo-compete-compatible testcase YAML import (issue #26, AC-05).

ac-test wrote testcases/<alias>.yml documents of the form:

# <problem URL>
---
type: Batch
timelimit: 2s
match: Lines
cases:
  - name: sample1
    in: |
      ...
    out: |
      ...
extend: []

This module parses that shape leniently: only cases[].name, cases[].in, and optional cases[].out are required; every other key is ignored. Cases without out stay execution-check only — they are never treated as correctness passes (ADR-0005).

Structs§

YamlCase
One cases: entry from a cargo-compete testcase YAML document.

Functions§

parse_cases
Parses a cargo-compete testcase YAML document into its cases.