Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/lint/suite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ fn with_steps(dirs: &BTreeMap<String, PathBuf>) -> usize {
#[test]
fn every_fixture_reaches_its_verdict() {
let dirs = fixtures(&suite());
assert_eq!(dirs.len(), 52, "revision 1 holds 52 fixtures");
assert_eq!(dirs.len(), 54, "revision 1 holds 54 fixtures");
assert_eq!(with_steps(&dirs), 20, "20 of them hold commits");
let wrong = wrong_verdicts(&dirs, &[]);
assert!(wrong.is_empty(), "{}", wrong.join("\n"));
Expand All @@ -302,7 +302,7 @@ fn every_fixture_reaches_its_verdict() {
fn every_fixture_reaches_its_verdict_with_supersession_marks_opted_into() {
let mut dirs = fixtures(&suite());
dirs.extend(fixtures(&proposal_suite(Proposal::SupersessionMarks)));
assert_eq!(dirs.len(), 136, "the overlay holds 136 fixtures");
assert_eq!(dirs.len(), 138, "the overlay holds 138 fixtures");
assert_eq!(with_steps(&dirs), 91, "91 of them hold commits");
let wrong = wrong_verdicts(&dirs, &[Proposal::SupersessionMarks]);
assert!(wrong.is_empty(), "{}", wrong.join("\n"));
Expand Down
4 changes: 2 additions & 2 deletions tests/suite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
A copy of the contract's conformance suite, which `cargo test` runs `aw lint`
against. Taken from `suite/` in
[agentic-workspace](https://github.com/aw-tools/agentic-workspace) at commit
`0e331428f03dcad480386336c31eb05c331ead81`, under the suite's MIT or Apache-2.0
`5b420aa51c25ba87d85a6132b08e6579812483b4`, under the suite's MIT or Apache-2.0
licence. Change a fixture there first, then copy it here again.

`proposals/supersession-marks/` is taken from
`suite/proposals/supersession-marks/` in the same repository at commit
`e6d626e3f64f5f17e49c490130e5400ab09e7879`.
`5b420aa51c25ba87d85a6132b08e6579812483b4`.
3 changes: 3 additions & 0 deletions tests/suite/rev1/2.1-kind-missing/fixture.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
clause = "2.1"
outcome = "fail"
artefacts = ["notes/*.md"]
5 changes: 5 additions & 0 deletions tests/suite/rev1/2.1-kind-missing/notes/charter-alpha.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
status: live
---

Governs the weekly review.
5 changes: 5 additions & 0 deletions tests/suite/rev1/2.1-kind-missing/registry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[class.standing]
statuses = ["live", "retired"]

[kind.charter]
class = "standing"
3 changes: 3 additions & 0 deletions tests/suite/rev1/5.2-frontmatter-unclosed/fixture.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
clause = "5.2"
outcome = "fail"
artefacts = ["notes/*.md"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
kind: roster
status: live

Reviewers for this quarter.
5 changes: 5 additions & 0 deletions tests/suite/rev1/5.2-frontmatter-unclosed/registry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[class.standing]
statuses = ["live", "retired"]

[kind.roster]
class = "standing"
Loading