mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
add test cases
This commit is contained in:
parent
e7414e16d0
commit
e78841007d
15
ncdump/cdl4/ref_tst_nul3.cdl
Normal file
15
ncdump/cdl4/ref_tst_nul3.cdl
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
netcdf ref_tst_nul3 {
|
||||||
|
dimensions:
|
||||||
|
n = 8 ;
|
||||||
|
variables:
|
||||||
|
char cdata(n) ;
|
||||||
|
char c;
|
||||||
|
|
||||||
|
// global attributes:
|
||||||
|
:global = "x\000y" ;
|
||||||
|
data:
|
||||||
|
|
||||||
|
cdata = "abc\000def" ;
|
||||||
|
|
||||||
|
c = "";
|
||||||
|
}
|
18
ncdump/cdl4/ref_tst_nul4.cdl
Normal file
18
ncdump/cdl4/ref_tst_nul4.cdl
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
netcdf ref_tst_nul4 {
|
||||||
|
dimensions:
|
||||||
|
n = 8 ;
|
||||||
|
variables:
|
||||||
|
// char cdata(n) ;
|
||||||
|
string sdata ;
|
||||||
|
// char c ;
|
||||||
|
|
||||||
|
// global attributes:
|
||||||
|
// string :global = "x\000y";
|
||||||
|
data:
|
||||||
|
|
||||||
|
// cdata = "abc\000def" ;
|
||||||
|
|
||||||
|
sdata = "123\0004" ;
|
||||||
|
|
||||||
|
// c = "" ;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user