Skip to content

Commit

Permalink
Change to triple equals
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter McNeeley committed Dec 6, 2024
1 parent 2d857cf commit dcba755
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Validates that constant evaluation and override evaluation of ${builtin}() rejec
const type = kValuesTypes[t.params.type];

// We expect to fail if low == high.
const expectedResult = t.params.value1 != t.params.value2;
const expectedResult = t.params.value1 !== t.params.value2;

validateConstOrOverrideBuiltinEval(
t,
Expand Down Expand Up @@ -127,7 +127,7 @@ fn foo() {
let tmp = smoothstep(${lowArg}, ${highArg}, x);
}`;

const error = t.params.low == t.params.high;
const error = t.params.low === t.params.high;
const shader_error =
error && t.params.lowStage === 'constant' && t.params.highStage === 'constant';
const pipeline_error =
Expand Down Expand Up @@ -349,7 +349,7 @@ g.test('early_eval_errors')
validateConstOrOverrideBuiltinEval(
t,
builtin,
/* expectedResult */ t.params.low != t.params.high,
/* expectedResult */ t.params.low !== t.params.high,
[f32(t.params.low), f32(t.params.high), f32(0)],
t.params.stage
);
Expand Down

0 comments on commit dcba755

Please sign in to comment.