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

make test: Fix mocha timeout @ 'Plural Forms Parsing should have the sam... #28

Merged
merged 1 commit into from Sep 17, 2014

Conversation

psilva261
Copy link
Contributor

Hey,

With this fix make test is error free! My Mac needs 6 seconds with the current HEAD, Travis CI needs 3 seconds. This patched version is a bit less than 1 second on my Mac, so it should be half a second on Travis CI which is way less than mocha's default timeout of 2 seconds...

expect.js's be and to functions aren't really complex but heavy enough to be more than 6x slower than a simple !== + throw.

Cheers, Philip

…same result as doing an eval on the expression for all known plural-forms'
@SlexAxton
Copy link
Member

So nice. Thank you.

SlexAxton added a commit that referenced this pull request Sep 17, 2014
make test: Fix mocha timeout @ 'Plural Forms Parsing should have the sam...
@SlexAxton SlexAxton merged commit 5d5bf2b into messageformat:master Sep 17, 2014
@psilva261
Copy link
Contributor Author

Thank you, it's a really cool project.

@SlexAxton
Copy link
Member

I always have to make sure you know about https://github.com/SlexAxton/messageformat.js -- which is what I generally suggest to people unless they're already using gettext in other systems.

@psilva261
Copy link
Contributor Author

Yeah I see, it uses PluralFormat/SelectFormat. I think for my current project it's a priority that there are tools for OS X and Windows that non-technical folks can easily use. A friend told me that there are even web apps for that, but I guess that's all gettext/.po editors.

@psilva261 psilva261 deleted the fix_test_timeout branch September 17, 2014 22:06
@SlexAxton
Copy link
Member

Yep, makes sense. Hopefully we can fix the tooling problem in the next few years, because it's a really nice upgrade.

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

Successfully merging this pull request may close these issues.

None yet

2 participants