Permalink
Browse files

bump version

  • Loading branch information...
1 parent 198995f commit 6c5d2ce673e41345d5b66a4fe40435ba3f6a0b7a @dhconnelly committed Dec 7, 2012
Showing with 4 additions and 5 deletions.
  1. +1 −1 package.json
  2. +1 −1 prettybnf.js
  3. +2 −3 test_prettybnf.js
View
2 package.json
@@ -1,6 +1,6 @@
{
"name": "prettybnf",
- "version": "0.1.1",
+ "version": "0.1.2",
"description": "a JavaScript library for working with BNF grammars",
"main": "prettybnf.js",
"scripts": {
View
2 prettybnf.js
@@ -5,7 +5,7 @@
(function (exports) {
'use strict';
-exports.version = '0.1.1';
+exports.version = '0.1.2';
exports.parse = parse;
exports.stringify = stringify;
exports.Parser = Parser;
View
5 test_prettybnf.js
@@ -9,7 +9,7 @@
var prettybnf = require('./prettybnf');
exports.testVersion = function (t) {
- t.equal(prettybnf.version, '0.1.1');
+ t.equal(prettybnf.version, '0.1.2');
t.done();
};
@@ -249,8 +249,7 @@ exports.test_stringify = function (t) {
};
exports.test_cycle = function (t) {
- var fs = require('fs');
- var ast1 = prettybnf.parse(fs.readFileSync('prettybnf.bnf', 'utf8'));
+ var ast1 = prettybnf.parse(grammar);
var str1 = prettybnf.stringify(ast1);
var ast2 = prettybnf.parse(str1);
var str2 = prettybnf.stringify(ast2);

0 comments on commit 6c5d2ce

Please sign in to comment.