mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 13:38:33 +03:00
test(es/testing): Ensure that test_inline!
is working properly (#8590)
**Related issue:** - Closes #8586
This commit is contained in:
parent
8c1f10823c
commit
872a47b851
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user