From 17b37f10d5a5339f85f965fca900c08762e480fd Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Fri, 8 Mar 2024 22:01:05 +0000 Subject: [PATCH] [repacker] add classdef size est. test that you can add the same class multiple times. --- src/graph/test-classdef-graph.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graph/test-classdef-graph.cc b/src/graph/test-classdef-graph.cc index bb569e1e7..818226656 100644 --- a/src/graph/test-classdef-graph.cc +++ b/src/graph/test-classdef-graph.cc @@ -225,6 +225,7 @@ static void test_running_class_and_coverage_size_estimates () { graph::class_def_size_estimator_t estimator1(consecutive_map.iter()); assert(check_add_class_def_size(estimator1, consecutive_map, 1, {1})); assert(check_add_class_def_size(estimator1, consecutive_map, 2, {1, 2})); + assert(check_add_class_def_size(estimator1, consecutive_map, 2, {1, 2})); // check that adding the same class again works assert(check_add_class_def_size(estimator1, consecutive_map, 3, {1, 2, 3})); estimator1.reset();