summaryrefslogtreecommitdiffstats
path: root/tools/testfiles
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-01-15 16:42:22 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-01-15 16:42:22 (GMT)
commitbe52cc0eba0149beb088a03c2a9d1530971f911b (patch)
tree72ff56da1610b9321b0bf68c9f02b844f8ec3312 /tools/testfiles
parentc4d9f6ae104e886d7dc6c69567d661989b662e5c (diff)
downloadhdf5-be52cc0eba0149beb088a03c2a9d1530971f911b.zip
hdf5-be52cc0eba0149beb088a03c2a9d1530971f911b.tar.gz
hdf5-be52cc0eba0149beb088a03c2a9d1530971f911b.tar.bz2
[svn-r8067] *** empty log message ***
Diffstat (limited to 'tools/testfiles')
-rw-r--r--tools/testfiles/tenum.ddl36
-rw-r--r--tools/testfiles/tenum.h5bin1560 -> 2128 bytes
-rw-r--r--tools/testfiles/tenum.h5.xml23
3 files changed, 28 insertions, 31 deletions
diff --git a/tools/testfiles/tenum.ddl b/tools/testfiles/tenum.ddl
index fdd3a60..496647d 100644
--- a/tools/testfiles/tenum.ddl
+++ b/tools/testfiles/tenum.ddl
@@ -3,30 +3,24 @@ Expected output for 'h5dump tenum.h5'
#############################
HDF5 "tenum.h5" {
GROUP "/" {
- DATATYPE "enum normal" {
- H5T_ENUM
- { H5T_STD_I32BE;
- "RED" 0;
- "GREEN" 1;
- "BLUE" 2;
- "WHITE" 3;
- "BLACK" 4;
+ DATATYPE "enum normal" H5T_ENUM {
+ H5T_STD_I32LE;
+ "RED" 0;
+ "GREEN
+green" 1;
+ "BLUE blue" 2;
+ "WHITE "white"" 3;
+ "BLACK 'black'" 4;
};
- }
+
DATASET "table" {
- DATATYPE { H5T_ENUM
- { H5T_STD_I32BE;
- "RED" 0;
- "GREEN" 1;
- "BLUE" 2;
- "WHITE" 3;
- "BLACK" 4;
- }
- }
- DATASPACE { SIMPLE ( 20 ) / ( 20 ) }
+ DATATYPE "/enum normal"
+ DATASPACE SIMPLE { ( 20 ) / ( 20 ) }
DATA {
- RED, GREEN, BLUE, GREEN, WHITE, WHITE, BLACK, GREEN, BLUE, RED, RED,
- BLUE, GREEN, BLACK, WHITE, RED, WHITE, GREEN, GREEN, BLUE
+ RED, GREEN\ngreen, BLUE blue, GREEN\ngreen, WHITE \"white\",
+ WHITE \"white\", BLACK \'black\', GREEN\ngreen, BLUE blue, RED, RED,
+ BLUE blue, GREEN\ngreen, BLACK \'black\', WHITE \"white\", RED,
+ WHITE \"white\", GREEN\ngreen, GREEN\ngreen, BLUE blue
}
}
}
diff --git a/tools/testfiles/tenum.h5 b/tools/testfiles/tenum.h5
index 89a3379..667be98 100644
--- a/tools/testfiles/tenum.h5
+++ b/tools/testfiles/tenum.h5
Binary files differ
diff --git a/tools/testfiles/tenum.h5.xml b/tools/testfiles/tenum.h5.xml
index 0d6c3dd..231d9cd 100644
--- a/tools/testfiles/tenum.h5.xml
+++ b/tools/testfiles/tenum.h5.xml
@@ -3,14 +3,14 @@ Expected output for 'h5dump --xml tenum.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<hdf5:HDF5-File xmlns:hdf5="http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hdf.ncsa.uiuc.edu/DTDs/HDF5File http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.xsd">
-<hdf5:RootGroup OBJ-XID="xid_696" H5Path="/">
- <hdf5:NamedDataType Name="enum normal" OBJ-XID="xid_744" H5Path="/enum normal" Parents="xid_696" H5ParentPaths="/">
+<hdf5:RootGroup OBJ-XID="xid_928" H5Path="/">
+ <hdf5:NamedDataType Name="enum normal" OBJ-XID="xid_976" H5Path="/enum normal" Parents="xid_928" H5ParentPaths="/">
<hdf5:DataType>
<hdf5:AtomicType>
<hdf5:EnumType Nelems="5">
<hdf5:DataType>
<hdf5:AtomicType>
- <hdf5:IntegerType ByteOrder="BE" Sign="true" Size="4" />
+ <hdf5:IntegerType ByteOrder="LE" Sign="true" Size="4" />
</hdf5:AtomicType>
</hdf5:DataType>
<hdf5:EnumElement>
@@ -21,24 +21,25 @@ Expected output for 'h5dump --xml tenum.h5'
</hdf5:EnumValue>
<hdf5:EnumElement>
GREEN
+green
</hdf5:EnumElement>
<hdf5:EnumValue>
1
</hdf5:EnumValue>
<hdf5:EnumElement>
- BLUE
+ BLUE blue
</hdf5:EnumElement>
<hdf5:EnumValue>
2
</hdf5:EnumValue>
<hdf5:EnumElement>
- WHITE
+ WHITE &quot;white&quot;
</hdf5:EnumElement>
<hdf5:EnumValue>
3
</hdf5:EnumValue>
<hdf5:EnumElement>
- BLACK
+ BLACK &apos;black&apos;
</hdf5:EnumElement>
<hdf5:EnumValue>
4
@@ -47,7 +48,7 @@ Expected output for 'h5dump --xml tenum.h5'
</hdf5:AtomicType>
</hdf5:DataType>
</hdf5:NamedDataType>
- <hdf5:Dataset Name="table" OBJ-XID="xid_1152" H5Path= "/table" Parents="xid_696" H5ParentPaths="/">
+ <hdf5:Dataset Name="table" OBJ-XID="xid_1384" H5Path= "/table" Parents="xid_928" H5ParentPaths="/">
<hdf5:StorageLayout>
<hdf5:ContiguousLayout/>
</hdf5:StorageLayout>
@@ -61,11 +62,13 @@ Expected output for 'h5dump --xml tenum.h5'
<hdf5:Dimension DimSize="20" MaxDimSize="20"/>
</hdf5:SimpleDataspace>
</hdf5:Dataspace>
- <hdf5:NamedDataTypePtr OBJ-XID="xid_744" H5Path="/enum normal" />
+ <hdf5:NamedDataTypePtr OBJ-XID="xid_976" H5Path="/enum normal" />
<hdf5:Data>
<hdf5:DataFromFile>
- RED GREEN BLUE GREEN WHITE WHITE BLACK GREEN BLUE RED RED BLUE GREEN
- BLACK WHITE RED WHITE GREEN GREEN BLUE
+ RED GREEN\ngreen BLUE blue GREEN\ngreen WHITE \"white\" WHITE \"white\"
+ BLACK \'black\' GREEN\ngreen BLUE blue RED RED BLUE blue GREEN\ngreen
+ BLACK \'black\' WHITE \"white\" RED WHITE \"white\" GREEN\ngreen
+ GREEN\ngreen BLUE blue
</hdf5:DataFromFile>
</hdf5:Data>
</hdf5:Dataset>