feat: graph-ir (continueing #6) #10

Merged
schrottkatze merged 37 commits from schrottkatze/iowo:graph-ir into main 2024-01-23 12:55:01 +00:00
3 changed files with 35 additions and 18 deletions
Showing only changes of commit 5bf277cf14 - Show all commits

View file

@ -14,6 +14,15 @@ pub fn from_ron(raw: &str) -> Rpl {
#[derive(Serialize, Deserialize, PartialEq, Eq, Debug)] #[derive(Serialize, Deserialize, PartialEq, Eq, Debug)]
pub struct Rpl(pub Vec<Instruction>); pub struct Rpl(pub Vec<Instruction>);
#[cfg(test)]
mod tests {
use super::*;
use crate::instructions::{
read::{SourceFormat, SourceType},
write::{TargetFormat, TargetType},
MathInstruction,
};
#[test] #[test]
fn test_simple_deserialize() { fn test_simple_deserialize() {
const TEST_DATA: &str = const TEST_DATA: &str =
@ -34,3 +43,4 @@ fn test_simple_deserialize() {
]) ])
); );
} }
}

View file

@ -40,6 +40,7 @@
just nushell just nushell
typst typst-lsp typst typst-lsp
mold mold
cargo-nextest
]; ];
}) })
]; ];

View file

@ -1,3 +1,5 @@
all: test docs
# Compile all documentation as in proposals and design documents, placing them under `docs/compiled`. # Compile all documentation as in proposals and design documents, placing them under `docs/compiled`.
docs: docs:
#!/usr/bin/env nu #!/usr/bin/env nu
@ -9,3 +11,7 @@ docs:
) )
mv $pdf docs/compiled mv $pdf docs/compiled
} | ignore } | ignore
test:
#!/usr/bin/env nu
cargo nextest run