File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "target" : " ../../../au.org.access-nri/model/output/file-metadata/2-1-0/variable/time.json" ,
3+ "tests" : [
4+ {
5+ "description" : " Full valid time variable" ,
6+ "valid" : true ,
7+ "data" : {
8+ "axis" : " T" ,
9+ "bounds" : " time_bnds" ,
10+ "calendar" : " proleptic_gregorian" ,
11+ "long_name" : " time" ,
12+ "standard_name" : " time" ,
13+ "units" : " days since 0000-01-01"
14+ }
15+ },
16+ {
17+ "description" : " Missing required (long_name)" ,
18+ "valid" : false ,
19+ "data" : {
20+ "axis" : " T" ,
21+ "bounds" : " time_bnds" ,
22+ "calendar" : " proleptic_gregorian" ,
23+ "standard_name" : " time" ,
24+ "units" : " days since 0000-01-01"
25+ }
26+ },
27+ {
28+ "description" : " Const doesn't match" ,
29+ "valid" : false ,
30+ "data" : {
31+ "axis" : " T" ,
32+ "bounds" : " time_bounds" ,
33+ "calendar" : " proleptic_gregorian" ,
34+ "long_name" : " time" ,
35+ "standard_name" : " time" ,
36+ "units" : " days since 0000-01-01"
37+ }
38+ }
39+ ]
40+ }
Original file line number Diff line number Diff line change 1+ {
2+ "target" : " ../../../../au.org.access-nri/model/output/file-metadata/2-1-0/variable/time/calendar.json" ,
3+ "tests" : [
4+ {
5+ "description" : " Valid calendar" ,
6+ "valid" : true ,
7+ "data" : " proleptic_gregorian"
8+ },
9+ {
10+ "description" : " Valid calendar but capitalised" ,
11+ "valid" : false ,
12+ "data" : " PROLEPTIC_GREGORIAN"
13+ },
14+ {
15+ "description" : " Invalid calendar" ,
16+ "valid" : false ,
17+ "data" : " invalid_calendar"
18+ },
19+ {
20+ "description" : " Not even a string" ,
21+ "valid" : false ,
22+ "data" : 6
23+ }
24+ ]
25+ }
Original file line number Diff line number Diff line change 1+ {
2+ "target" : " ../../../../au.org.access-nri/model/output/file-metadata/2-1-0/variable/time/units.json" ,
3+ "tests" : [
4+ {
5+ "description" : " Valid units for time" ,
6+ "valid" : true ,
7+ "data" : " days since 0001-01-01 00:00:00"
8+ },
9+ {
10+ "description" : " Valid units for time - no seconds" ,
11+ "valid" : true ,
12+ "data" : " days since 0001-01-01 00:00"
13+ },
14+ {
15+ "description" : " Valid units for time - no time" ,
16+ "valid" : true ,
17+ "data" : " days since 0001-01-01"
18+ },
19+ {
20+ "description" : " Invalid units for time - not real time" ,
21+ "valid" : false ,
22+ "data" : " days since 0001-01-01 00:00:61"
23+ },
24+ {
25+ "description" : " Invalid units for time - not days" ,
26+ "valid" : false ,
27+ "data" : " seconds since 0001-01-01 00:00:00"
28+ },
29+ {
30+ "description" : " Invalid units for time" ,
31+ "valid" : false ,
32+ "data" : " not even close to valid"
33+ },
34+ {
35+ "description" : " Invalid units for time - not a string" ,
36+ "valid" : false ,
37+ "data" : 5
38+ }
39+ ]
40+ }
You can’t perform that action at this time.
0 commit comments