Skip to content

Commit

Permalink
Add test that has meaningful output, followed by an error
Browse files Browse the repository at this point in the history
  • Loading branch information
jtran committed Jan 27, 2025
1 parent dfa8e00 commit c3855d1
Show file tree
Hide file tree
Showing 10 changed files with 1,526 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/wasm-lib/kcl/src/simulation_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,27 @@ mod cube {
super::execute(TEST_NAME, true).await
}
}
mod cube_with_error {
const TEST_NAME: &str = "cube_with_error";

/// Test parsing KCL.
#[test]
fn parse() {
super::parse(TEST_NAME)
}

/// Test that parsing and unparsing KCL produces the original KCL input.
#[test]
fn unparse() {
super::unparse(TEST_NAME)
}

/// Test that KCL is executed correctly.
#[tokio::test(flavor = "multi_thread")]
async fn kcl_test_execute() {
super::execute(TEST_NAME, true).await
}
}
mod artifact_graph_example_code1 {
const TEST_NAME: &str = "artifact_graph_example_code1";

Expand Down
Loading

0 comments on commit c3855d1

Please sign in to comment.