Commit d94eb977 authored by Rémi Duraffort's avatar Rémi Duraffort

Add a basic test for var_ToggleBool.

parent 1bc0945e
......@@ -71,6 +71,12 @@ static void test_booleans( libvlc_int_t *p_libvlc )
for( i = 0; i < i_var_count; i++ )
assert( var_GetBool( p_libvlc, psz_var_name[i] ) == var_value[i].b_bool );
for( i = 0; i < i_var_count; i++ )
var_ToggleBool( p_libvlc, psz_var_name[i] );
for( i = 0; i < i_var_count; i++ )
assert( var_GetBool( p_libvlc, psz_var_name[i] ) != var_value[i].b_bool );
for( i = 0; i < i_var_count; i++ )
var_Destroy( p_libvlc, psz_var_name[i] );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment