add more tests for operators

This commit is contained in:
teoxoy authored and Teodor Tanasoaia committed 2022-04-15 11:21:51 +02:00
1 parent 6427a661f7
commit e4c017cb7c
7 files changed
+1193 -405

No files matched your search

-1
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, .. })