add more tests for operators

This commit is contained in:
teoxoy
2022-04-12 15:50:10 +02:00
committed by Teodor Tanasoaia
parent 6427a661f7
commit e4c017cb7c
7 changed files with 1193 additions and 405 deletions

View File

@@ -670,7 +670,6 @@ impl super::Validator {
Some(Sk::Uint) | Some(Sk::Sint) | Some(Sk::Float) => true,
Some(Sk::Bool) | None => false,
};
//TODO: should we be more restrictive here? I.e. expect scalar only to the left.
let types_match = match (left_inner, right_inner) {
(&Ti::Scalar { kind: kind1, .. }, &Ti::Scalar { kind: kind2, .. })
| (&Ti::Vector { kind: kind1, .. }, &Ti::Scalar { kind: kind2, .. })