28 lines
585 B
Cheetah
28 lines
585 B
Cheetah
![]() |
mod TEST_NAME_HERE {
|
||
|
const TEST_NAME: &str = "TEST_NAME_HERE";
|
||
|
|
||
|
/// Test tokenizing KCL.
|
||
|
#[test]
|
||
|
fn tokenize() {
|
||
|
super::tokenize(TEST_NAME)
|
||
|
}
|
||
|
|
||
|
/// 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).await
|
||
|
}
|
||
|
}
|