|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2023 the original author or authors. |
| 2 | + * Copyright 2002-2024 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -177,31 +177,27 @@ void lambdaFactorial() {
|
177 | 177 | "(#fact={|n| ($n <= 1) ? 1 : ($n * #fact(($n - 1))) };#fact(5))");
|
178 | 178 | }
|
179 | 179 |
|
180 |
| - @Disabled("Unsupported syntax/feature") |
181 | 180 | @Test
|
182 | 181 | void projection() {
|
183 |
| - parseCheck("{1,2,3,4,5,6,7,8,9,10}.!{#isEven()}"); |
| 182 | + parseCheck("{1,2,3,4,5,6,7,8,9,10}.![#isEven()]"); |
184 | 183 | }
|
185 | 184 |
|
186 |
| - @Disabled("Unsupported syntax/feature") |
187 | 185 | @Test
|
188 | 186 | void selection() {
|
189 |
| - parseCheck("{1,2,3,4,5,6,7,8,9,10}.?{#isEven(#this) == 'y'}", |
190 |
| - "{1,2,3,4,5,6,7,8,9,10}.?{(#isEven(#this) == 'y')}"); |
| 187 | + parseCheck("{1,2,3,4,5,6,7,8,9,10}.?[#isEven(#this) == 'y']", |
| 188 | + "{1,2,3,4,5,6,7,8,9,10}.?[(#isEven(#this) == 'y')]"); |
191 | 189 | }
|
192 | 190 |
|
193 |
| - @Disabled("Unsupported syntax/feature") |
194 | 191 | @Test
|
195 | 192 | void selectionFirst() {
|
196 |
| - parseCheck("{1,2,3,4,5,6,7,8,9,10}.^{#isEven(#this) == 'y'}", |
197 |
| - "{1,2,3,4,5,6,7,8,9,10}.^{(#isEven(#this) == 'y')}"); |
| 193 | + parseCheck("{1,2,3,4,5,6,7,8,9,10}.^[#isEven(#this) == 'y']", |
| 194 | + "{1,2,3,4,5,6,7,8,9,10}.^[(#isEven(#this) == 'y')]"); |
198 | 195 | }
|
199 | 196 |
|
200 |
| - @Disabled("Unsupported syntax/feature") |
201 | 197 | @Test
|
202 | 198 | void selectionLast() {
|
203 |
| - parseCheck("{1,2,3,4,5,6,7,8,9,10}.${#isEven(#this) == 'y'}", |
204 |
| - "{1,2,3,4,5,6,7,8,9,10}.${(#isEven(#this) == 'y')}"); |
| 199 | + parseCheck("{1,2,3,4,5,6,7,8,9,10}.$[#isEven(#this) == 'y']", |
| 200 | + "{1,2,3,4,5,6,7,8,9,10}.$[(#isEven(#this) == 'y')]"); |
205 | 201 | }
|
206 | 202 | }
|
207 | 203 |
|
|
0 commit comments