From 3561a45c859a9f5e81823320e6f2c0c24e9c95ee Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 6 Feb 2012 10:03:50 +0100 Subject: [PATCH] added some unit tests for previous merge --- test/Twig/Tests/Fixtures/filters/slice.test | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/test/Twig/Tests/Fixtures/filters/slice.test b/test/Twig/Tests/Fixtures/filters/slice.test index ae64b26..0e3a563 100644 --- a/test/Twig/Tests/Fixtures/filters/slice.test +++ b/test/Twig/Tests/Fixtures/filters/slice.test @@ -13,6 +13,8 @@ {{ [1, 2, 3, 4]|slice(1)|join('') }} {{ [1, 2, 3, 4][1:]|join('') }} +{{ '1234'|slice(1) }} +{{ '1234'[1:] }} --DATA-- return array('start' => 1, 'length' => 2, 'arr' => new ArrayObject(array(1, 2, 3, 4))) --EXPECT-- @@ -28,3 +30,5 @@ return array('start' => 1, 'length' => 2, 'arr' => new ArrayObject(array(1, 2, 3 234 234 +234 +234 -- 1.7.2.5