From e644d7c078c9b75edf1ba513a030d33921af8192 Mon Sep 17 00:00:00 2001 From: Mikhail Uvarov Date: Mon, 12 Aug 2019 01:49:59 +0200 Subject: Correctly render redefined variable Rendering of variables behaves differently for already defined variables. Values of such variables are rendered in the wrong order, ignoring any variables above from the same file. --- test/rlx_test_utils.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/rlx_test_utils.erl') diff --git a/test/rlx_test_utils.erl b/test/rlx_test_utils.erl index 37d9c7a..5328559 100644 --- a/test/rlx_test_utils.erl +++ b/test/rlx_test_utils.erl @@ -185,7 +185,8 @@ test_template_contents() -> "{foo_yahoo, \"{{foo_yahoo}}\"}.\n" "{google, \"{{google}}\"}.\n" "{prop1, \"{{prop1}}\"}.\n" - "{prop2, {{prop2}}}.\n". + "{prop2, {{prop2}}}.\n" + "{tpl_var, \"{{tpl_var}}\"}.\n". escript_contents() -> "#!/usr/bin/env escript\n" -- cgit v1.2.3