diff options
author | Qrius <[email protected]> | 2024-09-26 00:11:05 +0200 |
---|---|---|
committer | Qrius <[email protected]> | 2024-09-26 00:11:05 +0200 |
commit | c7e3570f90ddd495c0a27969e738de5a21bbccff (patch) | |
tree | d386ae4edb52c76a00e5387d72089343a03c1d83 /tests/macro_processor.rs | |
parent | 509744ad69135447ba0f445b3f68207722ffab62 (diff) | |
download | skaldpress-c7e3570f90ddd495c0a27969e738de5a21bbccff.tar.gz skaldpress-c7e3570f90ddd495c0a27969e738de5a21bbccff.zip |
Add special case for removing whitespace before macro if it has a trailing underscore
Diffstat (limited to 'tests/macro_processor.rs')
-rw-r--r-- | tests/macro_processor.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/macro_processor.rs b/tests/macro_processor.rs index cb21df5..c224b54 100644 --- a/tests/macro_processor.rs +++ b/tests/macro_processor.rs @@ -257,3 +257,13 @@ fn test_smp_expr_1() { ", ); } + +#[test] +fn test_smp_whitespace_deleting_1() { + assert_eq!(run_macro_processor("define(a, b) a"), " b",); +} + +#[test] +fn test_smp_whitespace_deleting_2() { + assert_eq!(run_macro_processor("define(a, b) a_"), "b",); +} |