Enable DISABLED const evaluation tests.
This CL enables a couple const evaluation tests since the operators are implemented. Bug: tint:1581 Change-Id: Id4fe1221fed495a8c98d7120f7fd49a0455ac100 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/104465 Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
parent
933441b7b8
commit
d4fa2a022e
|
@ -1014,9 +1014,8 @@ TEST_F(ResolverVariableTest, LocalConst_PropagateConstValue) {
|
|||
EXPECT_EQ(Sem().Get(c)->ConstantValue()->As<i32>(), 42_i);
|
||||
}
|
||||
|
||||
// Enable when we have @const operators implemented
|
||||
TEST_F(ResolverVariableTest, DISABLED_LocalConst_ConstEval) {
|
||||
auto* c = Const("c", Div(Mul(Add(1_i, 2_i), 3_i), 2_i));
|
||||
TEST_F(ResolverVariableTest, LocalConst_ConstEval) {
|
||||
auto* c = Const("c", Div(Mul(Add(1_i, 2_i), 3_i), 3_i));
|
||||
|
||||
WrapInFunction(c);
|
||||
|
||||
|
@ -1182,9 +1181,8 @@ TEST_F(ResolverVariableTest, GlobalConst_PropagateConstValue) {
|
|||
EXPECT_EQ(Sem().Get(c)->ConstantValue()->As<i32>(), 42_i);
|
||||
}
|
||||
|
||||
// Enable when we have @const operators implemented
|
||||
TEST_F(ResolverVariableTest, DISABLED_GlobalConst_ConstEval) {
|
||||
auto* c = GlobalConst("c", Div(Mul(Add(1_i, 2_i), 3_i), 2_i));
|
||||
TEST_F(ResolverVariableTest, GlobalConst_ConstEval) {
|
||||
auto* c = GlobalConst("c", Div(Mul(Add(1_i, 2_i), 3_i), 3_i));
|
||||
|
||||
ASSERT_TRUE(r()->Resolve()) << r()->error();
|
||||
|
||||
|
|
Loading…
Reference in New Issue