Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put speed test apart unit-test #115

Open
nicolas-zozol opened this issue Sep 16, 2018 · 0 comments
Open

Put speed test apart unit-test #115

nicolas-zozol opened this issue Sep 16, 2018 · 0 comments

Comments

@nicolas-zozol
Copy link
Collaborator

Cover tool will run it ultra slow

'expect complex calcul to true and lightening fast': function (test) {

        const calculus = '3 +2*4 -((2*45-78)*2*(6*(9-8)+3*(2-5)  ))';

        let time = new Date().getTime();
        let parsing = multParser().parse(stream.ofString(calculus));
        time = new Date().getTime() - time;

        test.equal(parsing.value, 83, 'complex multiplication');
        // Should be 10 ; Unfortunately cover Agent will make it ultra slow 
        test.ok(time < 200, 'parsing is too slow');

        test.done();
    },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant