aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/tests/annotation/annotation_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'document/src/tests/annotation/annotation_test.cpp')
-rw-r--r--document/src/tests/annotation/annotation_test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/document/src/tests/annotation/annotation_test.cpp b/document/src/tests/annotation/annotation_test.cpp
index 1e4e216cdc6..2700cfcf96f 100644
--- a/document/src/tests/annotation/annotation_test.cpp
+++ b/document/src/tests/annotation/annotation_test.cpp
@@ -154,7 +154,7 @@ TEST("requireThatAnnotationsCanHaveValues") {
}
TEST("requireThatAnnotationsCanReferenceAnnotations") {
- SpanList::UP root(new SpanList);
+ auto root = std::make_unique<SpanList>();
SpanTree tree("html", std::move(root));
size_t san_index = tree.annotate(makeUP(new Annotation(text_type)));
size_t fran_index = tree.annotate(makeUP(new Annotation(text_type)));
@@ -174,7 +174,6 @@ TEST("requireThatAnnotationsCanReferenceAnnotations") {
Annotation city(city_type, std::move(city_data));
ASSERT_TRUE(city.getFieldValue());
- EXPECT_TRUE(city.getFieldValue()->isA(original));
EXPECT_EQUAL(original, *city.getFieldValue());
}