Fix relatwed to issue number #54 - % in text

This commit is contained in:
knsv
2015-01-24 19:33:10 +01:00
parent d0428d492b
commit 6612b3e01e
14 changed files with 135 additions and 38 deletions

View File

@@ -9,7 +9,7 @@ describe('when parsing an info graph it',function() {
parseError = function(err, hash) {
console.log('Syntax error:' + err);
};
ex.yy.parseError = parseError;
//ex.yy.parseError = parseError;
});
it('should handle an info definition', function () {
@@ -22,4 +22,15 @@ describe('when parsing an info graph it',function() {
ex.parse(str);
});
it('should handle an showMessage statement definition', function () {
var str = 'info\nshowInfo';
try{
ex.parse(str);
}
catch(err){
console.log('Caught'+err.message);
}
});
});