summaryrefslogtreecommitdiffstats
path: root/eval/src/tests
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2019-06-19 10:18:08 +0000
committerHåvard Pettersen <havardpe@oath.com>2019-06-19 10:18:08 +0000
commitb8e30961b8c5f140823bd2828f87ab9fd906a1d7 (patch)
treefcb7752c120fc0d85995c3bd7cb056d640c7d51d /eval/src/tests
parent90671fd176dda18c44f26c77a396683da2b96b47 (diff)
readjust to a world without ErrorValue
Diffstat (limited to 'eval/src/tests')
-rw-r--r--eval/src/tests/eval/value_cache/tensor_loader_test.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/eval/src/tests/eval/value_cache/tensor_loader_test.cpp b/eval/src/tests/eval/value_cache/tensor_loader_test.cpp
index 8180a7daef8..5dfde15a0ee 100644
--- a/eval/src/tests/eval/value_cache/tensor_loader_test.cpp
+++ b/eval/src/tests/eval/value_cache/tensor_loader_test.cpp
@@ -39,11 +39,10 @@ void verify_tensor(const TensorSpec &expect, ConstantValue::UP actual) {
}
void verify_invalid(ConstantValue::UP actual) {
- EXPECT_EQUAL(actual->type(), ValueType::double_type());
- EXPECT_EQUAL(actual->value().as_double(), 0.0);
+ EXPECT_TRUE(actual->type().is_error());
}
-TEST_F("require that invalid types loads an empty double", ConstantTensorLoader(SimpleTensorEngine::ref())) {
+TEST_F("require that invalid types gives bad constant value", ConstantTensorLoader(SimpleTensorEngine::ref())) {
TEST_DO(verify_invalid(f1.create(TEST_PATH("dense.json"), "invalid type spec")));
}