Forráskód Böngészése

Merge pull request #6631 from ghalliday/issue12565

HPCC-12565 Add test case for regression suite option

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 éve
szülő
commit
ee08dea4a5

+ 12 - 0
testing/regress/ecl/issue12565.ecl

@@ -0,0 +1,12 @@
+//version passedName='rectangle',rectangle.width=40
+//version passedName='rectangle',rectangle.height=40
+//version passedName='rectangle',rectangle.width=20,rectangle.height=20
+
+import ^ as root;
+
+width := #IFDEFINED(root.rectangle.width, 10);
+height := #IFDEFINED(root.rectangle.height, 10);
+name := #IFDEFINED(root.passedName, 'unknown');
+
+output('The area of the ' + name + ' is ' + (string)(width * height) + '.');
+

+ 3 - 0
testing/regress/ecl/key/issue12565.xml

@@ -0,0 +1,3 @@
+<Dataset name='Result 1'>
+ <Row><Result_1>The area of the rectangle is 400.</Result_1></Row>
+</Dataset>