usecase_struct_01 fails with fresh install
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
What steps will reproduce the problem?
1. Download YAMLMatlab
2. Run selftest_yamlmatlab from the Tests folder
3. Observe the results in the browser
What is the expected output? What do you see instead?
Expected:
test_WY_usecase_01: Passed
Observed:
test_WY_usecase_01: Failed, Wrong values loaded
What version of the product are you using? On what operating system?
I have tested this on Matlab 2013a and 2013b. More details below.
MATLAB Version: 8.2.0.701 (R2013b)
Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit
Server VM mixed mode
MATLAB Version: 8.1.0.604 (R2013a)
Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM)
64-Bit Server VM mixed mode
Please provide any additional information below.
I have found one difference between the original data, and the result of the
read-write operation. By stepping inside the test_WY_Universal for
'usecase_struct_01' i find this:
ry.dist{1}{33}.ZoneID is equal to {}
data.testval.dist{1}{33}.ZoneID is equal to ''
It therefore seems that the type of empty variables may change.
I also found another example that fails:
a={};
WriteYaml('~temporary.yaml',a);
r = ReadYaml('~temporary.yaml');
r is now equal to []
Original issue reported on code.google.com by tibirke...@gmail.com
on 6 Dec 2013 at 8:48