We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6ac140 commit 49d4a17Copy full SHA for 49d4a17
2 files changed
+hdf5nc/test_hdf5.m
@@ -46,7 +46,7 @@ function test_get_variables(tc)
46
47
function test_exists(tc)
48
e0 = hdf5nc.h5exists(tc.TestData.basic, '/A3');
49
-assert(isscalar(e0))
+assertSize(tc, e0, [1,1])
50
assertTrue(tc, e0, 'A3 exists')
51
52
assertFalse(tc, hdf5nc.h5exists(tc.TestData.basic, '/oops'), 'oops not exist')
@@ -62,11 +62,11 @@ function test_size(tc)
62
basic = tc.TestData.basic;
63
64
s = h5size(basic, '/A0');
65
-assert(isscalar(s))
+assertSize(tc, s, [1,1])
66
assertEqual(tc, s, 1, 'A0 shape')
67
68
s = h5size(basic, '/A1');
69
70
assertEqual(tc, s, 2, 'A1 shape')
71
72
s = h5size(basic, '/A2');
@@ -86,7 +86,7 @@ function test_size(tc)
86
function test_read(tc)
87
88
s = h5read(basic, '/A0');
89
90
assertEqual(tc, s, 42, 'A0 read')
91
92
s = h5read(basic, '/A1');
+hdf5nc/test_netcdf.m
@@ -39,7 +39,7 @@ function test_get_variables(tc)
39
40
41
e0 = hdf5nc.ncexists(tc.TestData.basic, 'A3');
42
43
44
45
assertFalse(tc, hdf5nc.ncexists(tc.TestData.basic, '/oops'), 'oops not exist')
@@ -54,11 +54,11 @@ function test_size(tc)
54
55
56
s = ncsize(basic, 'A0');
57
58
59
60
s = ncsize(basic, 'A1');
61
s = ncsize(basic, 'A2');
@@ -79,7 +79,7 @@ function test_read(tc)
79
80
81
s = ncread(basic, '/A0');
82
83
84
85
s = ncread(basic, '/A1');
0 commit comments