Skip to content

Commit 707f6eb

Browse files
committed
UtilsTest: add tests for Utils.IS_AT_LEAST_V constant
1 parent ccccd4b commit 707f6eb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/test/java/com/github/iusmac/sevensim/UtilsTest.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public void test_Q() {
5555
assertFalse(Utils.IS_AT_LEAST_S);
5656
assertFalse(Utils.IS_AT_LEAST_T);
5757
assertFalse(Utils.IS_AT_LEAST_U);
58+
assertFalse(Utils.IS_AT_LEAST_V);
5859
}
5960

6061
@Test
@@ -65,6 +66,7 @@ public void test_R() {
6566
assertFalse(Utils.IS_AT_LEAST_S);
6667
assertFalse(Utils.IS_AT_LEAST_T);
6768
assertFalse(Utils.IS_AT_LEAST_U);
69+
assertFalse(Utils.IS_AT_LEAST_V);
6870
}
6971

7072
@Test
@@ -75,6 +77,7 @@ public void test_S() {
7577
assertTrue(Utils.IS_AT_LEAST_S);
7678
assertFalse(Utils.IS_AT_LEAST_T);
7779
assertFalse(Utils.IS_AT_LEAST_U);
80+
assertFalse(Utils.IS_AT_LEAST_V);
7881
}
7982

8083
@Test
@@ -85,6 +88,7 @@ public void test_S_V2() {
8588
assertTrue(Utils.IS_AT_LEAST_S);
8689
assertFalse(Utils.IS_AT_LEAST_T);
8790
assertFalse(Utils.IS_AT_LEAST_U);
91+
assertFalse(Utils.IS_AT_LEAST_V);
8892
}
8993

9094
@Test
@@ -95,6 +99,7 @@ public void test_Tiramisu() {
9599
assertTrue(Utils.IS_AT_LEAST_S);
96100
assertTrue(Utils.IS_AT_LEAST_T);
97101
assertFalse(Utils.IS_AT_LEAST_U);
102+
assertFalse(Utils.IS_AT_LEAST_V);
98103
}
99104

100105
@Test
@@ -105,6 +110,18 @@ public void test_UpsideDownCake() {
105110
assertTrue(Utils.IS_AT_LEAST_S);
106111
assertTrue(Utils.IS_AT_LEAST_T);
107112
assertTrue(Utils.IS_AT_LEAST_U);
113+
assertFalse(Utils.IS_AT_LEAST_V);
114+
}
115+
116+
@Test
117+
@Config(sdk = Build.VERSION_CODES.VANILLA_ICE_CREAM)
118+
public void test_VanillaIceCream() {
119+
assertFalse(Utils.IS_OLDER_THAN_S);
120+
assertTrue(Utils.IS_AT_LEAST_R);
121+
assertTrue(Utils.IS_AT_LEAST_S);
122+
assertTrue(Utils.IS_AT_LEAST_T);
123+
assertTrue(Utils.IS_AT_LEAST_U);
124+
assertTrue(Utils.IS_AT_LEAST_V);
108125
}
109126
}
110127

0 commit comments

Comments
 (0)