From f346e341e382ca3eba5353bed0c97345fd7f42b6 Mon Sep 17 00:00:00 2001 From: Vasily Nemkov Date: Wed, 16 Feb 2022 18:42:03 +0200 Subject: [PATCH] Added tests to EnumType::GetName() on empty enums --- ut/types_ut.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ut/types_ut.cpp b/ut/types_ut.cpp index 7f91f596..98d9a800 100644 --- a/ut/types_ut.cpp +++ b/ut/types_ut.cpp @@ -62,6 +62,11 @@ TEST(TypesCase, EnumTypes) { ASSERT_EQ((++enum16->As()->BeginValueToName())->second, "Red"); } +TEST(TypesCase, EnumTypesEmpty) { + ASSERT_EQ("Enum8()", Type::CreateEnum8({})->GetName()); + ASSERT_EQ("Enum16()", Type::CreateEnum16({})->GetName()); +} + TEST(TypesCase, DecimalTypes) { // TODO: implement this test. }