From 525e1c7aeac5c12d55ae0b1a43bf57a28b243aa7 Mon Sep 17 00:00:00 2001 From: Ivan Kniazkov Date: Tue, 3 Sep 2024 13:42:11 +0300 Subject: [PATCH] More tests --- .../astranaut/core/algorithms/NodeAllocatorTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/test/java/org/cqfn/astranaut/core/algorithms/NodeAllocatorTest.java b/src/test/java/org/cqfn/astranaut/core/algorithms/NodeAllocatorTest.java index 76e92a3..1460855 100644 --- a/src/test/java/org/cqfn/astranaut/core/algorithms/NodeAllocatorTest.java +++ b/src/test/java/org/cqfn/astranaut/core/algorithms/NodeAllocatorTest.java @@ -399,6 +399,16 @@ void testEmptyChildrenList() { Assertions.assertTrue(result); } + @Test + void testEmptyDescriptions() { + final boolean result = this.testMapping( + Collections.emptyList(), + Collections.singletonList(new NodeDescriptor("A", 0)), + false + ); + Assertions.assertTrue(result); + } + /** * Common test for the {@link NodeAllocator} class. * @param types The list of types