refactor: splitting models
This commit is contained in:
@@ -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`"));
|
||||
|
||||
Reference in New Issue
Block a user