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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
| times: 0
firstNullableString: String, secondNullableString: String, thirdNullableString: null
firstNullableString length: 6
tripleElvisOperator: String
times: 1
firstNullableString: null, secondNullableString: String, thirdNullableString: String
secondNullableString length: 6
tripleElvisOperator: String
times: 2
firstNullableString: null, secondNullableString: String, thirdNullableString: null
secondNullableString length: 6
tripleElvisOperator: String
times: 3
firstNullableString: null, secondNullableString: null, thirdNullableString: String
thirdNullableString length: 6
tripleElvisOperator: String
times: 4
firstNullableString: null, secondNullableString: String, thirdNullableString: null
secondNullableString length: 6
tripleElvisOperator: String
times: 5
firstNullableString: null, secondNullableString: String, thirdNullableString: null
secondNullableString length: 6
tripleElvisOperator: String
times: 6
firstNullableString: null, secondNullableString: String, thirdNullableString: String
secondNullableString length: 6
tripleElvisOperator: String
times: 7
firstNullableString: String, secondNullableString: null, thirdNullableString: String
firstNullableString length: 6
tripleElvisOperator: String
times: 8
firstNullableString: String, secondNullableString: String, thirdNullableString: null
firstNullableString length: 6
tripleElvisOperator: String
times: 9
firstNullableString: null, secondNullableString: null, thirdNullableString: null
Exception in thread "main" java.lang.IllegalStateException: All NullableStrings are null
at UseElvisOperatorContinuouslyKt.tripleElvisOperatorTest(UseElvisOperatorContinuously.kt:49)
at UseElvisOperatorContinuouslyKt.main(UseElvisOperatorContinuously.kt:6)
at UseElvisOperatorContinuouslyKt.main(UseElvisOperatorContinuously.kt)
Process finished with exit code 1
|