| Index: pkg/polymer_expressions/test/parser_test.dart
|
| diff --git a/pkg/polymer_expressions/test/parser_test.dart b/pkg/polymer_expressions/test/parser_test.dart
|
| index 4b3f2b1532c90c645db469a1bf1fc8258a2a845a..f98c1b74e223f767c8676587d926cae271fc20df 100644
|
| --- a/pkg/polymer_expressions/test/parser_test.dart
|
| +++ b/pkg/polymer_expressions/test/parser_test.dart
|
| @@ -161,6 +161,13 @@ main() {
|
| index(ident('c'), ident('d'))));
|
| });
|
|
|
| + test('should parse ternary operators', () {
|
| + expectParse('a ? b : c', ternary(ident('a'), ident('b'), ident('c')));
|
| + expectParse('a.a ? b.a : c.a', ternary(getter(ident('a'), 'a'),
|
| + getter(ident('b'), 'a'), getter(ident('c'), 'a')));
|
| + expect(() => parse('a + 1 ? b + 1 :: c.d + 3'), throws);
|
| + });
|
| +
|
| test('should parse a filter chain', () {
|
| expectParse('a | b | c', binary(binary(ident('a'), '|', ident('b')),
|
| '|', ident('c')));
|
|
|