Add test case for CatalanNumber (#3698)

This commit is contained in:
rashmibharambe 2022-10-27 15:04:39 +05:30 committed by GitHub
parent b46bf0d9b0
commit 38eadd928a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,14 @@
package com.thealgorithms.dynamicprogramming;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
public class CatalanNumberTest {
@Test
public void testCatalanNumber() {
assertEquals(42, CatalanNumber.findNthCatalan(5));
assertEquals(16796, CatalanNumber.findNthCatalan(10));
}
}