From c789a7846450b90f0b6fe238a9512594114c0bfa Mon Sep 17 00:00:00 2001 From: Duncan Fairbanks Date: Sun, 17 Dec 2023 02:14:54 -0800 Subject: [PATCH] validate string bindings --- src/evaluate.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/evaluate.rs b/src/evaluate.rs index 020e4a5..d735faf 100644 --- a/src/evaluate.rs +++ b/src/evaluate.rs @@ -18,6 +18,7 @@ impl BoolExpression { registers: &mut Registers, ) -> Vec { validate_bindings(real_bindings, registers.register_length); + validate_bindings(string_bindings, registers.register_length); self.evaluate_recursive( real_bindings, string_bindings, @@ -193,7 +194,7 @@ impl RealExpression { } } -fn validate_bindings>(input_bindings: &[R], expected_length: usize) { +fn validate_bindings>(input_bindings: &[B], expected_length: usize) { for b in input_bindings.iter() { assert_eq!(b.as_ref().len(), expected_length); }