Phase 4 complete: All comparison operators working perfectly

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-11 20:42:42 +00:00
parent 2d3b6adf09
commit 535003118d
2 changed files with 81 additions and 4 deletions

View File

@ -1217,7 +1217,7 @@ pub struct CompareBox;
impl CompareBox {
pub fn less(left: &dyn NyashBox, right: &dyn NyashBox) -> BoolBox {
use crate::boxes::math_box::FloatBox;
use crate::boxes::FloatBox;
// Integer < Integer
if let (Some(left_int), Some(right_int)) = (
@ -1255,7 +1255,7 @@ impl CompareBox {
}
pub fn greater(left: &dyn NyashBox, right: &dyn NyashBox) -> BoolBox {
use crate::boxes::math_box::FloatBox;
use crate::boxes::FloatBox;
// Integer > Integer
if let (Some(left_int), Some(right_int)) = (
@ -1293,7 +1293,7 @@ impl CompareBox {
}
pub fn less_equal(left: &dyn NyashBox, right: &dyn NyashBox) -> BoolBox {
use crate::boxes::math_box::FloatBox;
use crate::boxes::FloatBox;
// Integer <= Integer
if let (Some(left_int), Some(right_int)) = (
@ -1331,7 +1331,7 @@ impl CompareBox {
}
pub fn greater_equal(left: &dyn NyashBox, right: &dyn NyashBox) -> BoolBox {
use crate::boxes::math_box::FloatBox;
use crate::boxes::FloatBox;
// Integer >= Integer
if let (Some(left_int), Some(right_int)) = (