var tape = require('tape');
var d3   = require('../');

tape('cube naming is correct', function(test){

    var cubes = d3._3d().shape('CUBE').x(function(d){ return d.x; }).y(function(d){ return d.y; }).z(function(d){ return d.z; });

    var data = [
        [
            {x: 0, y: 0, z: 0},
            {x: 0, y: 1, z: 0},
            {x: 1, y: 1, z: 0},
            {x: 1, y: 0, z: 0},
            {x: 0, y: 0, z: 1},
            {x: 0, y: 1, z: 1},
            {x: 1, y: 1, z: 1},
            {x: 1, y: 0, z: 1},
        ]
    ];

    test.equal(cubes(data)[0][0].face, 'front');
    test.equal(cubes(data)[0][1].face, 'back');
    test.equal(cubes(data)[0][2].face, 'left');
    test.equal(cubes(data)[0][3].face, 'right');
    test.equal(cubes(data)[0][4].face, 'top');
    test.equal(cubes(data)[0][5].face, 'bottom');
    test.end();
});

@@ -529,16 +529,56 @@
     %5D;%0A%0A
+    console.log(cubes(data)%5B0%5D.faces);%0A%0A
     test
@@ -598,16 +598,22 @@
 data)%5B0%5D
+.faces
 %5B0%5D.face
@@ -653,16 +653,22 @@
 data)%5B0%5D
+.faces
 %5B1%5D.face
@@ -707,16 +707,22 @@
 data)%5B0%5D
+.faces
 %5B2%5D.face
@@ -761,16 +761,22 @@
 data)%5B0%5D
+.faces
 %5B3%5D.face
@@ -816,16 +816,22 @@
 data)%5B0%5D
+.faces
 %5B4%5D.face
@@ -869,16 +869,22 @@
 data)%5B0%5D
+.faces
 %5B5%5D.face

update cube test