From a075d3a324c80b1d7fd11ce281e332d96caf96b6 Mon Sep 17 00:00:00 2001 From: raphaelDkhn Date: Mon, 29 Jul 2024 10:43:31 +0300 Subject: [PATCH] Update cdf.cairo --- packages/orion-algo/src/algo/cdf.cairo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/orion-algo/src/algo/cdf.cairo b/packages/orion-algo/src/algo/cdf.cairo index a23d0cbeb..7e9763fdb 100644 --- a/packages/orion-algo/src/algo/cdf.cairo +++ b/packages/orion-algo/src/algo/cdf.cairo @@ -60,12 +60,12 @@ pub fn cdf< // single value or same length as x if loc.len() > 1 { - assert_eq!(loc.len(), x.len(), "`loc` must be a single value or same length as x"); + assert!(loc.len() == x.len(), "`loc` must be a single value or same length as x"); } // single value or same length as x if scale.len() > 1 { - assert_eq!(scale.len(), x.len(), "`scale` must be a single value or same length as x"); + assert!(scale.len() == x.len(), "`scale` must be a single value or same length as x"); } let mut res_data = array![];