Skip to content

Commit

Permalink
GRIB message validity checker: Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Dec 16, 2024
1 parent 541d380 commit dee96d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/grib_check_message_validity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ grib_check_key_equals $sample isMessageValid 1
# Check reduced Gaussian grid Ni
# ------------------------------
cat >$tempFilt<<EOF
set Ni = 0;
set Ni = 0; # illegal
assert ( isMessageValid == 0 );
set Ni = MISSING;
assert ( isMessageValid == 1 );
set Ni = 0; # illegal again
write;
EOF
${tools_dir}/grib_filter -o $tempGrib $tempFilt $sample 2>$tempText
Expand Down

0 comments on commit dee96d9

Please sign in to comment.