summaryrefslogtreecommitdiffstats
path: root/eval/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'eval/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp')
-rw-r--r--eval/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/eval/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp b/eval/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp
index e33cc116fba..3f582779202 100644
--- a/eval/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp
+++ b/eval/src/tests/tensor/tensor_conformance/tensor_conformance_test.cpp
@@ -20,16 +20,16 @@ TEST("require that (some) cross-language tensor conformance tests pass with C++
MappedFileInput input(result_file);
JsonFormat::decode(input, result);
fprintf(stderr, "conformance summary: %s\n", result.toString().c_str());
- int num_tests = result.get()["num_tests"].asLong();
- int prod_tests = result.get()["stats"]["cpp_prod"].asLong();
- int simple_tests = result.get()["stats"]["cpp_simple_value"].asLong();
- int streamed_tests = result.get()["stats"]["cpp_streamed_value"].asLong();
- int with_expect = result.get()["stats"]["expect"].asLong();
+ int num_tests = result["num_tests"].asLong();
+ int prod_tests = result["stats"]["cpp_prod"].asLong();
+ int simple_tests = result["stats"]["cpp_simple_value"].asLong();
+ int streamed_tests = result["stats"]["cpp_streamed_value"].asLong();
+ EXPECT_TRUE(result["fail_cnt"].valid());
+ EXPECT_EQUAL(result["fail_cnt"].asLong(), 0);
EXPECT_GREATER(num_tests, 1000);
EXPECT_EQUAL(prod_tests, num_tests);
EXPECT_EQUAL(simple_tests, num_tests);
EXPECT_EQUAL(streamed_tests, num_tests);
- EXPECT_EQUAL(with_expect, num_tests);
}
TEST_MAIN() { TEST_RUN_ALL(); }