summaryrefslogtreecommitdiffstats
path: root/tests/Components/Array2dTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Components/Array2dTest.php')
-rw-r--r--tests/Components/Array2dTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/Components/Array2dTest.php b/tests/Components/Array2dTest.php
index 0ceb345..b268d99 100644
--- a/tests/Components/Array2dTest.php
+++ b/tests/Components/Array2dTest.php
@@ -20,6 +20,15 @@ class Array2dTest extends TestCase
);
}
+ public function testBuild()
+ {
+ $arrays = Array2d::parse(new Parser(), $this->getTokensList('(1, 2), (3, 4), (5, 6)'));
+ $this->assertEquals(
+ '(1, 2), (3, 4), (5, 6)',
+ Array2d::build($arrays)
+ );
+ }
+
public function testParseErr1()
{
$parser = new Parser();