From: Fernyqc <fe...@us...> - 2005-12-12 18:24:53
|
Update of /cvsroot/robotflow/RobotFlow/ut/n-files In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19653/ut/n-files Added Files: header.txt in.txt README utExample.n Log Message: Files of the unit test blocks --- NEW FILE: README --- 1) Look at the utExample.n for a simple network using utLoad and utSave 2) You manually have to issue a diff command to see if the test is successful (i.e.: diff in.txt out.txt) --- NEW FILE: header.txt --- String Int Float Bool Vector<int> --- NEW FILE: utExample.n --- #!/usr/bin/env batchflow <?xml version="1.0"?> <Document> <Network type="subnet" name="MAIN"> <Node name="node_LOOP0_1" type="LOOP0" x="62.000000" y="100.000000"> <Parameter name="DOWHILE" type="bool" value="" description="No description available"/> </Node> <NetOutput name="OUTPUT" node="node_LOOP0_1" terminal="OUTPUT" object_type="any" description="No description available"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.9.0"/> </Network> <Network type="iterator" name="LOOP0"> <Node name="node_NOT_1" type="NOT" x="282.000000" y="75.000000"/> <Node name="node_UtLoad_1" type="UtLoad" x="166.000000" y="121.000000"> <Parameter name="HEADERFILE" type="string" value="header.txt" description="The filename of the header definition"/> <Parameter name="TESTFILE" type="string" value="in.txt" description="The filename containing the data for the test"/> </Node> <Node name="node_NOP_1" type="NOP" x="515.000000" y="128.000000"/> <Node name="node_UtSave_1" type="UtSave" x="313.000000" y="129.000000"> <Parameter name="FILENAME" type="string" value="out.txt" description="The filename to save the inputs"/> </Node> <Link from="node_UtLoad_1" output="EOF" to="node_NOT_1" input="INPUT"/> <Link from="node_UtSave_1" output="NILOUTPUT" to="node_NOP_1" input="INPUT"/> <Link from="node_UtLoad_1" output="o1" to="node_UtSave_1" input="i1"/> <Link from="node_UtLoad_1" output="o2" to="node_UtSave_1" input="i2"/> <Link from="node_UtLoad_1" output="o3" to="node_UtSave_1" input="i3"/> <Link from="node_UtLoad_1" output="o4" to="node_UtSave_1" input="i4"/> <Link from="node_UtLoad_1" output="o5" to="node_UtSave_1" input="i5"/> <NetCondition name="CONDITION" node="node_NOT_1" terminal="OUTPUT"/> <NetOutput name="OUTPUT" node="node_NOP_1" terminal="OUTPUT" object_type="any" description="The output = The input"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.9.0"/> </Network> </Document> --- NEW FILE: in.txt --- Patrick 10 11 0 3 1 2 3 Roger 1 2 1 3 4 5 6 William 100 2.98 1 3 7 8 9 |