-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolution015Test.java
More file actions
31 lines (26 loc) · 1010 Bytes
/
Solution015Test.java
File metadata and controls
31 lines (26 loc) · 1010 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
package com.portgas;
import org.junit.Test;
public class Solution015Test {
@Test
public void test() {
// function 1
int result1 = new Solution015().numberOf1(13);
int result2 = new Solution015().numberOf1(31);
int result3 = new Solution015().numberOf1(63);
int result4 = new Solution015().numberOf1(127);
// function 2
int result5 = new Solution015().numberOf12(13);
int result6 = new Solution015().numberOf12(31);
int result7 = new Solution015().numberOf12(63);
int result8 = new Solution015().numberOf12(127);
System.out.println("result1 = " + result1
+ "\n" + "result2 = " + result2
+ "\n" + "result3 = " + result3
+ "\n" + "result4 = " + result4
+ "\n" + "result5 = " + result5
+ "\n" + "result6 = " + result6
+ "\n" + "result7 = " + result7
+ "\n" + "result8 = " + result8
);
}
}