Skip to content

Commit 4edcf5f

Browse files
committed
Fix unit tests following previous change
1 parent e90287a commit 4edcf5f

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

tests/src/Tests/BranchTests.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,10 @@ fn main() -> Output
305305
ExpectGLSL(*shaderModule, R"(
306306
void main()
307307
{
308-
discard;
308+
{
309+
discard;
310+
}
311+
309312
Output output_;
310313
output_.color = vec4(1.0, 1.0, 1.0, 1.0);
311314
@@ -318,7 +321,10 @@ void main()
318321
[entry(frag)]
319322
fn main() -> Output
320323
{
321-
discard;
324+
{
325+
discard;
326+
}
327+
322328
let output: Output;
323329
output.color = vec4[f32](1.0, 1.0, 1.0, 1.0);
324330
return output;

tests/src/Tests/ConstTests.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ external
118118
fn main()
119119
{
120120
let value: f32;
121-
value = f32(data.value);
121+
{
122+
value = f32(data.value);
123+
}
124+
122125
}
123126
)");
124127
}
@@ -144,7 +147,10 @@ external
144147
fn main()
145148
{
146149
let value: f32;
147-
value = data.value;
150+
{
151+
value = data.value;
152+
}
153+
148154
}
149155
)");
150156
}

0 commit comments

Comments
 (0)