Sha256: 66362cdfabd85a4f9e92fe984b6e8a2ae5ea58a3d902c9d1a0f18d54affd6890
Contents?: true
Size: 628 Bytes
Versions: 4
Compression:
Stored size: 628 Bytes
Contents
var vows = require("vows"), load = require("../load"), assert = require("../assert"); var suite = vows.describe("d3.layout.pie"); suite.addBatch({ "pie": { topic: load("layout/pie").expression("d3.layout.pie"), "arcs are in same order as original data": function(pie) { var p = pie(); assert.deepEqual(p([5, 30, 15]).map(function(d) { return d.data; }), [ 5, 30, 15 ]); assert.deepEqual(p([ 84, 90, 48, 61, 58, 8, 6, 31, 45, 18 ]).map(function(d) { return d.data; }), [ 84, 90, 48, 61, 58, 8, 6, 31, 45, 18 ]); } } }); suite.export(module);
Version data entries
4 entries across 4 versions & 2 rubygems