Skip to content

Commit cd7ec69

Browse files
committed
Fix unit test for str_contain() in combination with macro. (#246, #243)
1 parent 17e263b commit cd7ec69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

metafix/src/test/java/org/metafacture/metafix/MetafixIfTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,14 +1559,14 @@ public void shouldMatchString() {
15591559
@Test
15601560
public void shouldTestMacroVariable() {
15611561
MetafixTestHelpers.assertFix(streamReceiver, Arrays.asList(
1562-
"do macro('test')",
1562+
"do put_macro('test')",
15631563
" if str_contain('name', 'a$[var]')",
15641564
" add_field('type', 'Organization: $[var]')",
15651565
" end",
15661566
"end",
1567-
"macro('test', 'var': 'm')",
1568-
"macro('test', 'var': 'me')",
1569-
"macro('test', 'var': 'mee')"
1567+
"call_macro('test', 'var': 'm')",
1568+
"call_macro('test', 'var': 'me')",
1569+
"call_macro('test', 'var': 'mee')"
15701570
),
15711571
i -> {
15721572
i.startRecord("1");

0 commit comments

Comments
 (0)