Consolidate layout: tests fixtures, public user docs, and view site.
Move gold samples under tests/, put executable user docs in public/, restyle view, and add catalog plus gh-pages publish workflow. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
29418e14f2
commit
96a7c6ce76
65 files changed
+1770
-432
No files matched your search
+3
-3
@@ -525,7 +525,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn parse_hello() {
|
||||
let src = include_str!("../../examples/structure/hello.mq.md");
|
||||
let src = include_str!("../../tests/structure/hello.mq.md");
|
||||
let m = parse_source(src).unwrap();
|
||||
assert_eq!(m.functions.len(), 1);
|
||||
assert_eq!(m.functions[0].name, "Hello World");
|
||||
@@ -535,7 +535,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn parse_index() {
|
||||
let src = include_str!("../../examples/structure/nested-call.mq.md");
|
||||
let src = include_str!("../../tests/structure/nested-call.mq.md");
|
||||
let m = parse_source(src).unwrap();
|
||||
assert!(m.imports.is_empty());
|
||||
let main = m.functions.iter().find(|f| f.name == "main").unwrap();
|
||||
@@ -546,7 +546,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn parse_branch() {
|
||||
let src = include_str!("../../examples/structure/branch.mq.md");
|
||||
let src = include_str!("../../tests/structure/branch.mq.md");
|
||||
let m = parse_source(src).unwrap();
|
||||
let main = &m.functions[0];
|
||||
assert!(main.body.iter().any(|s| matches!(s, Stmt::Branch { .. })));
|
||||
|
||||
Reference in new issue
Block a user