mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Merge branch '6.1.x'
This commit is contained in:
+12
@@ -309,6 +309,18 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
|
||||
assertThat(getAst().getExitDescriptor()).isEqualTo("C");
|
||||
}
|
||||
|
||||
@Test
|
||||
void indexIntoPrimitiveBooleanArray() {
|
||||
boolean[] booleans = { true, false };
|
||||
|
||||
expression = parser.parseExpression("[1]");
|
||||
|
||||
assertThat(expression.getValue(booleans)).isEqualTo(false);
|
||||
assertCanCompile(expression);
|
||||
assertThat(expression.getValue(booleans)).isEqualTo(false);
|
||||
assertThat(getAst().getExitDescriptor()).isEqualTo("Z");
|
||||
}
|
||||
|
||||
@Test
|
||||
void indexIntoStringArray() {
|
||||
String[] strings = { "a", "b", "c" };
|
||||
|
||||
Reference in New Issue
Block a user