Tweaked PIE (got rid of some parsing conflicts)

This commit is contained in:
chris moran
2020-07-27 14:15:38 -04:00
parent 771bf78576
commit e7ca6c16ff
3 changed files with 21 additions and 14 deletions

View File

@@ -12,6 +12,15 @@ describe('when parsing pie', function() {
pie.parser.yy = pieDb;
pie.parser.yy.clear();
});
it('should handle very simple pie', function() {
const res = pie.parser.parse(`pie
"ash" : 100
`);
const sections = pieDb.getSections();
console.log('sections: ', sections);
const section1 = sections['ash'];
expect(section1).toBe(100);
});
it('should handle simple pie', function() {
const res = pie.parser.parse(`pie
"ash" : 60