Skip to content

Commit

Permalink
Fix unit tests following previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix committed Jul 28, 2024
1 parent e90287a commit 4edcf5f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions tests/src/Tests/BranchTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,10 @@ fn main() -> Output
ExpectGLSL(*shaderModule, R"(
void main()
{
discard;
{
discard;
}
Output output_;
output_.color = vec4(1.0, 1.0, 1.0, 1.0);
Expand All @@ -318,7 +321,10 @@ void main()
[entry(frag)]
fn main() -> Output
{
discard;
{
discard;
}
let output: Output;
output.color = vec4[f32](1.0, 1.0, 1.0, 1.0);
return output;
Expand Down
10 changes: 8 additions & 2 deletions tests/src/Tests/ConstTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ external
fn main()
{
let value: f32;
value = f32(data.value);
{
value = f32(data.value);
}
}
)");
}
Expand All @@ -144,7 +147,10 @@ external
fn main()
{
let value: f32;
value = data.value;
{
value = data.value;
}
}
)");
}
Expand Down

0 comments on commit 4edcf5f

Please sign in to comment.