refactor: splitting models

This commit is contained in:
2026-08-07 10:43:42 -04:00
parent eb3c510911
commit f1288e155e
30 changed files with 453 additions and 413 deletions
+6 -4
View File
@@ -55,7 +55,7 @@
use std::path::{Path, PathBuf};
use crate::course::Layout;
use crate::Layout;
use crate::error::{Error, Result};
use super::config::Variant;
@@ -702,9 +702,11 @@ mod tests {
#[test]
fn ordinary_comments_are_left_alone() {
assert!(parse("// nothing to see\n// coursebank\n")
.unwrap()
.is_inert());
assert!(
parse("// nothing to see\n// coursebank\n")
.unwrap()
.is_inert()
);
// A word that merely starts with `begin` is a slot name, not a keyword.
let err = parse("// coursebank:beginning\n").unwrap_err();
assert!(err.to_string().contains("unknown slot `beginning`"));