<commit_before>let assert = require('assert');
let parser = require('./index.js');

const cases = {
    case1: `a=b`,
    result1: {term: {a:"b"}}
};


describe('Test Function', function() {

    describe('Simple YMember test', function() {
        it(``, function() {
            assert.equal(JSON.stringify(cases.result1), JSON.stringify(parser.parse(cases.case1)));
        });
    });
});<commit_msg>update test case<commit_after>let assert = require('assert');
let parser = require('./index.js');

const cases = {
    case1: `a=b`,
    result1: {term: {a:"b"}},
    case2: `(a=b)`,
    result2: {term: {a:"b"}},
};

describe('Test Function', function() {

    describe('Simple YMember Test', function() {
        it(``, function() {
            assert.equal(JSON.stringify(cases.result1), JSON.stringify(parser.parse(cases.case1)));
        });
    });

    describe('Simple YMember With Bracket Test', function() {
        it(``, function() {
            assert.equal(JSON.stringify(cases.result2), JSON.stringify(parser.parse(cases.case2)));
        });
    });
});
{'fraction_non_alphanumeric': 0.20335820895522388, 'fraction_numerical': 0.011194029850746268, 'mean_word_length': 3.2244094488188977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7667613', 'n_tokens_mistral': 338, 'n_tokens_neox': 334, 'n_words': 65}