From c7e3570f90ddd495c0a27969e738de5a21bbccff Mon Sep 17 00:00:00 2001 From: Qrius Date: Thu, 26 Sep 2024 00:11:05 +0200 Subject: Add special case for removing whitespace before macro if it has a trailing underscore --- tests/macro_processor.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') 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",); +} -- cgit v1.2.3