Add display of array element types in error messages (#7113)

* Add test showing unhelpful error message

* Add display of array element types in error messages

* Change to prose description

* Update output
This commit is contained in:
Jonathan Tran
2025-05-20 20:50:24 -04:00
committed by GitHub
parent a13b6b2b70
commit 0f0fc39d07
13 changed files with 473 additions and 11 deletions

View File

@ -384,6 +384,27 @@ mod any_type {
super::execute(TEST_NAME, false).await
}
}
mod error_with_point_shows_numeric_units {
const TEST_NAME: &str = "error_with_point_shows_numeric_units";
/// Test parsing KCL.
#[test]
fn parse() {
super::parse(TEST_NAME)
}
/// Test that parsing and unparsing KCL produces the original KCL input.
#[tokio::test(flavor = "multi_thread")]
async fn unparse() {
super::unparse(TEST_NAME).await
}
/// 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";