summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorQrius <[email protected]>2024-09-26 00:11:05 +0200
committerQrius <[email protected]>2024-09-26 00:11:05 +0200
commitc7e3570f90ddd495c0a27969e738de5a21bbccff (patch)
treed386ae4edb52c76a00e5387d72089343a03c1d83 /tests
parent509744ad69135447ba0f445b3f68207722ffab62 (diff)
downloadskaldpress-c7e3570f90ddd495c0a27969e738de5a21bbccff.tar.gz
skaldpress-c7e3570f90ddd495c0a27969e738de5a21bbccff.zip
Add special case for removing whitespace before macro if it has a trailing underscore
Diffstat (limited to 'tests')
-rw-r--r--tests/macro_processor.rs10
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",);
+}