test(es/testing): Ensure that test_inline! is working properly (#8590)

**Related issue:**

 - Closes #8586
This commit is contained in:
Donny/강동윤 2024-02-02 12:17:43 +09:00 committed by GitHub
parent 8c1f10823c
commit 872a47b851
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -478,7 +478,7 @@ test_inline!(
ignore,
Syntax::default(),
|_| noop(),
noop_ignored,
test_inline_ignored,
"class Foo {}",
"class Foo {}"
);
@ -486,11 +486,17 @@ test_inline!(
test_inline!(
Syntax::default(),
|_| noop(),
noop_test,
test_inline_pass,
"class Foo {}",
"class Foo {}"
);
#[test]
#[should_panic]
fn test_inline_should_fail() {
test_inline_input_output(Default::default(), |_| noop(), "class Foo {}", "");
}
#[macro_export]
macro_rules! test {
(ignore, $syntax:expr, $tr:expr, $test_name:ident, $input:expr) => {