// SPDX-License-Identifier: LGPL-2.1-only
// Copyright (C) 2026 Liberux Labs, S. L. <info@liberux.net>

use super::*;

#[ test ]
fn toggle_default_state()
{
	let t = toggle::<()>( true );
	assert!( t.value );
	assert!( t.on_toggle.is_none() );
	assert!( t.label.is_none() );
}

#[ test ]
fn toggle_off_state()
{
	let t = toggle::<()>( false );
	assert!( !t.value );
}
