diff options
| author | Michael Biebl <biebl@debian.org> | 2022-08-26 20:37:52 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2022-08-26 20:37:52 +0200 |
| commit | 31b0de3e5396f971e1476a155031a2c6d30af711 (patch) | |
| tree | b248ac35833f8356ece0e5719521d97c1cb03925 /src/libnm-core-impl/tests | |
| parent | 6ba52b312b7e2bd5744d3edacbe4149212242c74 (diff) | |
| parent | ab0efddcdb48d800e2f938da54cfe3074640792e (diff) | |
Update upstream source from tag 'upstream/1.40.0'
Update to upstream version '1.40.0' with Debian dir a59a8bafb9190ecb810335bfdaa82270e423df1d
Diffstat (limited to 'src/libnm-core-impl/tests')
| -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"); |