chore(naga): remove broken Unsupported64Bit tests

Seemingly missed in 4e6f873da5.
This commit is contained in:
Erich Gubler
2024-08-12 11:54:30 +01:00
parent ce23c02feb
commit 7f881bd35f

View File

@@ -1793,46 +1793,3 @@ fn f64_const_literals() {
);
assert!(result.is_ok());
}
/// Using I64 in a function's expression arena is forbidden.
#[test]
fn i64_runtime_literals() {
let result = validate_with_expression(
crate::Expression::Literal(crate::Literal::I64(1729)),
// There is no capability that enables this.
super::Capabilities::all(),
);
let error = result.unwrap_err().into_inner();
assert!(matches!(
error,
crate::valid::ValidationError::Function {
source: super::FunctionError::Expression {
source: super::ExpressionError::Literal(super::LiteralError::Width(
super::r#type::WidthError::Unsupported64Bit
),),
..
},
..
}
));
}
/// Using I64 in a module's constant expression arena is forbidden.
#[test]
fn i64_const_literals() {
let result = validate_with_const_expression(
crate::Expression::Literal(crate::Literal::I64(1729)),
// There is no capability that enables this.
super::Capabilities::all(),
);
let error = result.unwrap_err().into_inner();
assert!(matches!(
error,
crate::valid::ValidationError::ConstExpression {
source: super::ConstExpressionError::Literal(super::LiteralError::Width(
super::r#type::WidthError::Unsupported64Bit,
),),
..
}
));
}