1--TEST--
2Twig supports the "starts with" operator
3--TEMPLATE--
4{{ 'foo' starts with 'f' ? 'OK' : 'KO' }}
5{{ not ('foo' starts with 'oo') ? 'OK' : 'KO' }}
6{{ not ('foo' starts with 'foowaytoolong') ? 'OK' : 'KO' }}
7{{ 'foo' starts      with 'f' ? 'OK' : 'KO' }}
8{{ 'foo' starts
9with 'f' ? 'OK' : 'KO' }}
10{{ 'foo' starts with '' ? 'OK' : 'KO' }}
11{{ '1' starts with true ? 'OK' : 'KO' }}
12{{ '' starts with false ? 'OK' : 'KO' }}
13{{ 'a' starts with false ? 'OK' : 'KO' }}
14{{ false starts with '' ? 'OK' : 'KO' }}
15--DATA--
16return []
17--EXPECT--
18OK
19OK
20OK
21OK
22OK
23OK
24KO
25KO
26KO
27KO
28