mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
expr: add assert for &
This commit is contained in:
parent
04ab5b0108
commit
8a67224917
1 changed files with 1 additions and 0 deletions
|
@ -470,6 +470,7 @@ fn infix_operator_or(values: &[String]) -> String {
|
|||
}
|
||||
|
||||
fn infix_operator_and(values: &[String]) -> String {
|
||||
assert!(values.len() == 2);
|
||||
if value_as_bool(&values[0]) && value_as_bool(&values[1]) {
|
||||
values[0].clone()
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue