// import assert from 'assert';
'use strict';
import path from 'path'
import assert from 'assert';
import LogicExpressionParser from '../src/js/classes/Parse/LogicExpressionParser';

describe('LogicExpressionParser', function() {
  describe('#isWellformed()', function() {

    beforeEach(function() {
      this._parser = new LogicExpressionParser();
    });

    it('should detect a binary operator with only no operands is not well formed', function() {
      assert.strictEqual(this._parser.isWellformed('∧'), false);
    });

    it('should detect a binary operator with only one operand is not well formed', function() {
      assert.strictEqual(this._parser.isWellformed('a∧'), false);
    });

    it('should detect a binary operator with two operands is well formed', function() {
      assert.strictEqual(this._parser.isWellformed('a∧b'), true);
    });

    it('should be able to detect a unary operator with no operands is not well formed', function() {
      assert.strictEqual(this._parser.isWellformed('¬'), false);
    });

    it('should be able to detect a unary operator with one operand is well formed', function() {
      assert.strictEqual(this._parser.isWellformed('¬a'), true);
    });

    it('should be able to detect a unary operator with two operands is not well formed', function() {
      assert.strictEqual(this._parser.isWellformed('a¬a'), false);
    });

    it('should be able to detect the empty expression is well formed', function() {
      assert.strictEqual(this._parser.isWellformed(''), true);
    });
  })
});

@@ -227,54 +227,8 @@
 ) %7B%0A
-  describe('#isWellformed()', function() %7B%0A%0A  
   be
@@ -253,18 +253,16 @@
 ) %7B%0A    
- 
- 
 this._pa
@@ -295,29 +295,71 @@
 Parser();%0A  
-  
 %7D);
+%0A%0A  describe('#isWellformed()', function() %7B
 %0A%0A    it('sh
@@ -1531,17 +1531,429 @@
     %7D);%0A
-  %7D)
+%0A    it('should be able to detect that complex expressions of well formed expressions are well formed', function() %7B%0A      assert.strictEqual(this._parser.isWellformed('%C2%AC(a%E2%88%A7b)%E2%88%A8(a%E2%88%A7b)'), true);%0A    %7D);%0A%0A    it('should be able to detect that complex expressions of not well formed expressions are not well formed', function() %7B%0A      assert.strictEqual(this._parser.isWellformed('%C2%AC(a%E2%88%A7%E2%88%A7b)%E2%88%A8(a%E2%88%A7b)'), false);%0A    %7D);%0A  %7D);%0A
 %0A%7D);%0A

Add final tests for well formed