diff options
| author | Yong He <yonghe@outlook.com> | 2017-10-23 10:35:44 -0400 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-10-23 10:35:44 -0400 |
| commit | cc6184ebc4d0611be892eaff119de99f8b9e1ca6 (patch) | |
| tree | df730688789d46e3d956701bc4b87f2f5f47d916 /tools/slang-test/main.cpp | |
| parent | 0c8efd12667e66b3177c5d8557a0677c7d5d0e4e (diff) | |
Work in-progress: simple compute test passed. (d3d renderer)
Diffstat (limited to 'tools/slang-test/main.cpp')
| -rw-r--r-- | tools/slang-test/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/slang-test/main.cpp b/tools/slang-test/main.cpp index 181c34b00..272c1b618 100644 --- a/tools/slang-test/main.cpp +++ b/tools/slang-test/main.cpp @@ -1147,9 +1147,9 @@ TestResult doComputeComparisonTestRunImpl(TestInput& input, const char * langOpt return kTestResult_Fail; for (int i = 0; i < (int)referenceProgramOutput.Count(); i++) { - auto reference = StringToFloat(referenceProgramOutput[i]); - auto actual = StringToFloat(actualProgramOutput[i]); - if (abs(actual - reference) > 1e-7f) + auto reference = referenceProgramOutput[i]; + auto actual = actualProgramOutput[i]; + if (actual != reference) return kTestResult_Fail; } return kTestResult_Pass; |
