[svn-r8826] Purpose:
h5dump new tests Description: added more tests for the escape/not escape feature for string data (with vlen, with compound, with char data) Solution: Platforms tested: linux solaris AIX Misc. update:
This commit is contained in:
@@ -1,17 +1,66 @@
|
||||
#############################
|
||||
Expected output for 'h5dump -e -d string tfilters.h5'
|
||||
Expected output for 'h5dump -e tstr3.h5'
|
||||
#############################
|
||||
HDF5 "tfilters.h5" {
|
||||
DATASET "string" {
|
||||
DATATYPE H5T_STRING {
|
||||
STRSIZE 73;
|
||||
STRPAD H5T_STR_NULLTERM;
|
||||
CSET H5T_CSET_ASCII;
|
||||
CTYPE H5T_C_S1;
|
||||
HDF5 "tstr3.h5" {
|
||||
GROUP "/" {
|
||||
DATASET "str1" {
|
||||
DATATYPE H5T_STRING {
|
||||
STRSIZE 73;
|
||||
STRPAD H5T_STR_NULLTERM;
|
||||
CSET H5T_CSET_ASCII;
|
||||
CTYPE H5T_C_S1;
|
||||
}
|
||||
DATASPACE SIMPLE { ( 1 ) / ( 1 ) }
|
||||
DATA {
|
||||
(0): "quote \" backspace\b form feed\f new line\n tab\t new line\n carriage return\r"
|
||||
}
|
||||
}
|
||||
DATASET "str2" {
|
||||
DATATYPE H5T_STRING {
|
||||
STRSIZE H5T_VARIABLE;
|
||||
STRPAD H5T_STR_NULLTERM;
|
||||
CSET H5T_CSET_ASCII;
|
||||
CTYPE H5T_C_S1;
|
||||
}
|
||||
DATASPACE SIMPLE { ( 4 ) / ( 4 ) }
|
||||
DATA {
|
||||
(0): "Four score and seven\n years ago our forefathers brought forth on this continent a new nation,",
|
||||
(1): "conceived in liberty\n and dedicated to the proposition that all men are created equal.",
|
||||
(2): "Now we are engaged\n in a great civil war,",
|
||||
(3): "testing whether that\n nation or any nation so conceived and so dedicated can long endure."
|
||||
}
|
||||
}
|
||||
DATASET "str3" {
|
||||
DATATYPE H5T_COMPOUND {
|
||||
H5T_STD_I32LE "a";
|
||||
H5T_STRING {
|
||||
STRSIZE 255;
|
||||
STRPAD H5T_STR_NULLTERM;
|
||||
CSET H5T_CSET_ASCII;
|
||||
CTYPE H5T_C_S1;
|
||||
} "str";
|
||||
}
|
||||
DATASPACE SIMPLE { ( 1 ) / ( 1 ) }
|
||||
DATA {
|
||||
(0): {
|
||||
24,
|
||||
"Four score and seven\n years ago our forefathers brought forth on this continent a new nation"
|
||||
}
|
||||
}
|
||||
}
|
||||
DATASET "str4" {
|
||||
DATATYPE H5T_STD_I8LE
|
||||
DATASPACE SIMPLE { ( 93 ) / ( 93 ) }
|
||||
DATA {
|
||||
(0): 70, 111, 117, 114, 32, 115, 99, 111, 114, 101, 32, 97, 110,
|
||||
(13): 100, 32, 115, 101, 118, 101, 110, 10, 32, 121, 101, 97,
|
||||
(25): 114, 115, 32, 97, 103, 111, 32, 111, 117, 114, 32, 102,
|
||||
(37): 111, 114, 101, 102, 97, 116, 104, 101, 114, 115, 32, 98,
|
||||
(49): 114, 111, 117, 103, 104, 116, 32, 102, 111, 114, 116,
|
||||
(60): 104, 32, 111, 110, 32, 116, 104, 105, 115, 32, 99, 111,
|
||||
(72): 110, 116, 105, 110, 101, 110, 116, 32, 97, 32, 110, 101,
|
||||
(84): 119, 32, 110, 97, 116, 105, 111, 110, 0
|
||||
}
|
||||
DATASPACE SIMPLE { ( 1 ) / ( 1 ) }
|
||||
DATA {
|
||||
(0): "quote \" backspace\b form feed\f new line\n tab\t new line\n carriage return\r"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user