Changeset 9d0d08d in tol
- Timestamp:
- Feb 26, 2009, 2:37:21 PM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 23d5671
- Parents:
- 91836f9
- Location:
- tol_tests/tol/Bugzilla/bug_000576
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tol_tests/tol/Bugzilla/bug_000576/test.tol
r91836f9 r9d0d08d 8 8 Real bugNum_ = 576; 9 9 Text email_ = "vdebuen@tol-project.org"; 10 Text summary_ = "BDBOpen can not be used without a Structure Name of field register"; 10 Text summary_ = "BDBOpen can not be used without a Structure Name " 11 "of field register"; 11 12 Text link_ = GetTolBugzillaLink(bugNum_); 12 13 … … 17 18 Set dataCSV = BDBOpen(pathCSV, 0, ";", "", ""); 18 19 Real regNum = dataCSV->RegNumber; 19 Set tabla = For(1, regNum, Set(Real k){ BDBReg(dataCSV, regNum) }); 20 20 Set tabla = For(1, regNum, Set(Real k) 21 { 22 Set reg = BDBReg(dataCSV, k); 23 WriteLn("reg["<<k<<"] = "<<reg); 24 reg 25 }); 26 Text tabla_txt = ""<<tabla; 27 Real ok = tabla_txt == 28 "[[ [[ \"Campo1\", \"Campo2\", \"Campo3\", \"Campo4\"]], " 29 "[[ \"2\", \"4\", \"1\", \"t\"]], " 30 "[[ \"2\", \"e\", \"r\", \"2\"]], " 31 "[[ \"3\", \"5\", \"f\", \"e\"]]]]"; 32 33 Real BDBClose(dataCSV); 21 34 Real numErr1 = Copy(NError); 22 /* 35 23 36 //Extented information about test behaviour 24 37 Set partialResults_ = 25 38 [[ 26 numErr0, numErr1 39 numErr0, numErr1, ok 27 40 ]]; 28 41 42 29 43 //This is a messure of the success of the test 30 Real quality_ = numErr1 == numErr0;44 Real quality_ = And(numErr1 == numErr0, ok); 31 45 32 46 //Return the results -
tol_tests/tol/Bugzilla/bug_000576/test.txt
r91836f9 r9d0d08d 1 Campo 1;Campo 1;Campo 1;Campo 1 2 2;4;;t 3 2;e;r; 4 3;;f;e 5 6 Campo3;Campo3;Campo3; 1 Campo1;Campo2;Campo3;Campo4 2 2;4;1;t 3 2;e;r;2 4 3;5;f;e
Note: See TracChangeset
for help on using the changeset viewer.
