Skip to content
Snippets Groups Projects
Commit cace20f4 authored by Stanislav Benda's avatar Stanislav Benda :thumbsup_tone5:
Browse files

Addin Test

parent 2a1345ee
No related branches found
No related tags found
No related merge requests found
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class BendastaUkol1 {
@Test
public void factorialTest() {
Horejvo1 horejvo1 = new Horejvo1();
int n = 0;
long expectedVal = 1;
long result = horejvo1.factorial(n);
Assertions.assertEquals(expectedVal, result);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment