use crate::value::Value;
use super::common;
use super::evaluator::RbacBuiltinError;
pub(super) fn bool_equals(
left: &Value,
right: &Value,
name: &'static str,
) -> Result<bool, RbacBuiltinError> {
let lhs = common::value_as_bool(left, name)?;
let rhs = common::value_as_bool(right, name)?;
Ok(lhs == rhs)
}