From 620a7a183862f3b7303bd0da5bd1cf2c8f04f02a Mon Sep 17 00:00:00 2001 From: sagie gur ari Date: Fri, 31 Jul 2020 10:51:48 +0000 Subject: [PATCH] more tests --- test/std/flowcontrol/if_else_test.ds | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/std/flowcontrol/if_else_test.ds b/test/std/flowcontrol/if_else_test.ds index 475885c..ece779e 100644 --- a/test/std/flowcontrol/if_else_test.ds +++ b/test/std/flowcontrol/if_else_test.ds @@ -118,6 +118,17 @@ fn test_nested_if2 assert ${valid} end +fn test_if_call_command + text = set test, + + valid = set false + if ends_with ${text} , + valid = set true + end + + assert ${valid} +end + fn test_if_call_to_functions value = _test_return_true valid = set false