// Dependencies
var Assert = require("assert")
  , CliGraph = require("../lib")
  , Fs = require("fs")
  ;

const CIRCLE = Fs.readFileSync(__dirname + "/circle", "utf-8");

it("should create the graph and stringify it", function (cb) {
    var circle = new CliGraph({ height: 32, width: 32 }).setFunctionX(function (x) {
        return Math.sqrt(200 - x * x);
    }).setFunctionX(function (x) {
        return -Math.sqrt(200 - x * x);
    }).setFunctionY(function (y) {
        return Math.sqrt(200 - y * y);
    }).setFunctionY(function (y) {
        return -Math.sqrt(200 - y * y);
    });
    Assert.equal(circle.toString(), CIRCLE);
    cb();
});

@@ -166,16 +166,201 @@
 f-8%22);%0A%0A
+it(%22should merge the options correctly%22, function (cb) %7B%0A    var circle = new CliGraph(%7B marks: %7B point: %22foo%22 %7D %7D);%0A    Assert.equal(circle.options.marks.point, %22foo%22);%0A    cb();%0A%7D);%0A%0A
 it(%22shou

Test merges