diff options
| author | Michael Biebl <biebl@debian.org> | 2022-08-26 20:36:29 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2022-08-26 20:36:29 +0200 |
| commit | ab0efddcdb48d800e2f938da54cfe3074640792e (patch) | |
| tree | 88b67be9bb4a4ecc2b6e4d1766dc11bb43a13601 /src/libnm-core-impl/tests/test-general.c | |
| parent | 0018d1f3cf71d680d7b6bceda55a5717244d8b26 (diff) | |
New upstream version 1.40.0 upstream/1.40.0
Diffstat (limited to 'src/libnm-core-impl/tests/test-general.c')
| -rw-r--r-- | src/libnm-core-impl/tests/test-general.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libnm-core-impl/tests/test-general.c b/src/libnm-core-impl/tests/test-general.c index 3c8cd3ba..64b3dca7 100644 --- a/src/libnm-core-impl/tests/test-general.c +++ b/src/libnm-core-impl/tests/test-general.c @@ -9124,6 +9124,10 @@ test_nm_utils_enum(void) .value = 5, }, { + .nick = "nick-0", + .value = 0, + }, + { .nick = "nick-red", .value = NM_TEST_GENERAL_COLOR_FLAGS_RED, }, @@ -9170,6 +9174,8 @@ test_nm_utils_enum(void) "nick-5, green", color_value_infos); + _test_nm_utils_enum_to_str_do_full(color_flags, 0, "nick-0", color_value_infos); + _test_nm_utils_enum_from_str_do(bool_enum, "", FALSE, 0, NULL); _test_nm_utils_enum_from_str_do(bool_enum, " ", FALSE, 0, NULL); _test_nm_utils_enum_from_str_do(bool_enum, "invalid", FALSE, 0, "invalid"); |