Home
last modified time | relevance | path

Searched refs:fib (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/test/java/libcore/java/io/
DOldAndroidPipedStreamTest.java50 Fibonacci fib = new Fibonacci(); in testA()
65 assertEquals(readByte, (byte) fib.next()); in testA()
74 Fibonacci fib = new Fibonacci(); in testA()
79 int toWrite = fib.next(); in testA()
117 Fibonacci fib = new Fibonacci(); in testB()
143 assertEquals("Error at " + countRead, fib.next(), readInt); in testB()
153 Fibonacci fib = new Fibonacci(); in testB()
159 int toWrite = fib.next(); in testB()
224 Fibonacci fib = new Fibonacci(); in testC()
230 int toWrite = fib.next(); in testC()
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DForkJoinTask8Test.java93 final int[] fib; field in ForkJoinTask8Test
95 int[] fib = new int[10];
96 fib[0] = 0;
97 fib[1] = 1;
98 for (int i = 2; i < fib.length; i++)
99 fib[i] = fib[i - 1] + fib[i - 2];
100 this.fib = fib;
333 this.expectedResult = fib[number];
/libcore/jsr166-tests/src/test/java/jsr166/
DForkJoinTask8Test.java70 final int[] fib; field in ForkJoinTask8Test
72 int[] fib = new int[10];
73 fib[0] = 0;
74 fib[1] = 1;
75 for (int i = 2; i < fib.length; i++)
76 fib[i] = fib[i - 1] + fib[i - 2];
77 this.fib = fib;
310 this.expectedResult = fib[number];