mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-20 08:56:56 -05:00
json: remove obsolete # comment handling
Comments are handled by the parser now. Keys and values starting with # are intentional now.
This commit is contained in:
parent
826f52344f
commit
77a4ae380e
5 changed files with 4 additions and 17 deletions
|
|
@ -216,10 +216,11 @@ static void test_new_string(void)
|
|||
props = pw_properties_new_string("foo=bar bar=baz \"#ignore\"=ignore him=too empty=\"\" =gg");
|
||||
spa_assert(props != NULL);
|
||||
spa_assert(props->flags == 0);
|
||||
spa_assert(props->dict.n_items == 4);
|
||||
spa_assert(props->dict.n_items == 5);
|
||||
|
||||
spa_assert(spa_streq(pw_properties_get(props, "foo"), "bar"));
|
||||
spa_assert(spa_streq(pw_properties_get(props, "bar"), "baz"));
|
||||
spa_assert(spa_streq(pw_properties_get(props, "#ignore"), "ignore"));
|
||||
spa_assert(spa_streq(pw_properties_get(props, "him"), "too"));
|
||||
spa_assert(spa_streq(pw_properties_get(props, "empty"), ""));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue