forked from petroskilp/java-getting-started
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathTesteFibo.java
More file actions
32 lines (30 loc) · 743 Bytes
/
TesteFibo.java
File metadata and controls
32 lines (30 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import org.junit.Test;
import static org.junit.Assert.*;
import com.example.Fibonacci;
public class TesteFibo {
@Test
public void Teste1() {
Fibonacci f = new Fibonacci();
assertEquals(2D, f.fibo(1), 0.01);
}
@Test
public void Teste2() {
Fibonacci f = new Fibonacci();
assertEquals(8D, f.fibo(3), 0.01);
}
@Test
public void Teste3() {
Fibonacci f = new Fibonacci();
assertEquals(512D, f.fibo(9), 0.01);
}
@Test
public void Teste4() {
Fibonacci f = new Fibonacci();
assertEquals(4D, f.fibo(2), 0.01);
}
@Test
public void Teste5() {
Fibonacci f = new Fibonacci();
assertEquals(16D, f.fibo(4), 0.01);
}
}