From ee46514f74b7279cbbc5e1107681884f5018bd00 Mon Sep 17 00:00:00 2001 From: Emanuele Danovaro Date: Sat, 21 Oct 2023 11:28:36 +0200 Subject: [PATCH] fix unit test - added support for new validityTime encoding format (hhmm) --- tests/test_codes_decoder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_codes_decoder.cc b/tests/test_codes_decoder.cc index bf84226..224ca57 100644 --- a/tests/test_codes_decoder.cc +++ b/tests/test_codes_decoder.cc @@ -219,7 +219,7 @@ CASE("test codessplitter unstr_latlot.tmpl Native") { MD_EXPECT_LONG(md, "endStep", 0); MD_EXPECT_STRING(md, "stepRange", "0"); MD_EXPECT_LONG(md, "validityDate", 10101); - MD_EXPECT_LONG(md, "validityTime", 0); + MD_EXPECT_STRINGS(md, "validityTime", "0", "0000"); MD_EXPECT_STRING(md, "typeOfFirstFixedSurface", "168"); MD_EXPECT_STRING(md, "unitsOfFirstFixedSurface", "Numeric"); MD_EXPECT_STRING(md, "nameOfFirstFixedSurface", "Ocean model level");