Skip to content

Commit fbcd258

Browse files
committed
add == test
1 parent cf6ae62 commit fbcd258

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

.idea/compiler.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java_test/src/main/java/com/yiyun/JustTest.java

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,37 @@ public class JustTest {
1010
public JustTest() {
1111
System.out.println("b.....");
1212
}
13+
1314
static {
1415
System.out.println("c.....");
1516
}
1617

1718
public static void main(String[] args) {
1819
JustTest justTest = new JustTest();
19-
System.out.println("-----------------------");
20+
System.out.println("-----------------------");
2021
int i = Runtime.getRuntime().availableProcessors();
2122
System.out.println("i = " + i);
2223
}
24+
2325
@Test
24-
public void fun1(){
26+
public void fun1() {
2527
long i = 100_000_000_000L;
2628
float v = 9.1f;
2729
float v1 = 9.000f;
28-
System.out.println( v%1==0);
29-
System.out.println( v1%1==0);
30+
System.out.println(v % 1 == 0);
31+
System.out.println(v1 % 1 == 0);
3032
}
33+
3134
@Test
32-
public void fun(){
33-
int i = ((6-3) >> 1 )+3;
35+
public void fun() {
36+
int i = ((6 - 3) >> 1) + 3;
3437
System.out.println("i = " + i);
3538
}
36-
37-
39+
40+
//滑稽的大佬
41+
@Test
42+
public void fun2() {
43+
System.out.println(129 == 129);
44+
}
45+
3846
}

0 commit comments

Comments
 (0)