text: /*global describe, before, it */
  
  var fs = require('fs');
  var expect = require('chai').expect;
  
  var GML = require('../index');
  
  var graph = {
  	directed: 1,
  	nodes: [
  		{ id: 1, label: 'A' },
  		{ id: 2, label: 'B' },
  		{ id: 3, label: 'C' },
  		{ id: 4, label: 'D' },
  		{ id: 5, label: 'E' },
  		{ id: 6, label: 'F' },
  		{ id: 7, label: 'G' }
  	],
  	edges: [
  		{ source: 1, target: 2, label: 'A->B' },
  		{ source: 1, target: 3, label: 'A->C' },
  		{ source: 2, target: 4, label: 'B->D' },
  		{ source: 2, target: 5, label: 'B->E' },
  		{ source: 3, target: 6, label: 'C->F' },
  		{ source: 3, target: 7, label: 'C->G' }
  	]
  };
  
  var indent = '  ';
  
  describe('GML', function () {
  
  	var gml;
  
  	before(function () {
  
  		gml = fs.readFileSync('test/graph.gml', 'utf8').replace(/\r\n/g, '\n');
  	});
  
  	it('should parse', function parse() {
  
  		var parsed = GML.parse(gml);
  
  		expect(parsed).to.deep.equal(graph);
  	});
  
  	it('should stringify', function stringify() {
  
  		var string = GML.stringify(graph, { indent: indent });
  
  		expect(string).to.equal(gml);
  	});
  
  });
  