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

Port the tests to Mocha. And some of the missed PyYAML tests. #57

Merged
merged 111 commits into from
Dec 20, 2012
Merged

Port the tests to Mocha. And some of the missed PyYAML tests. #57

merged 111 commits into from
Dec 20, 2012

Conversation

dervus
Copy link
Collaborator

@dervus dervus commented Dec 19, 2012

Ported from PyYAML:

  • Reader tests.
  • Mark tests.
  • Constructor tests.
  • "Canonical" tests. Note: I have modified them in order to remove terrible code duplication.

Marked as "unsupported":

  • IO tests. (*.unicode) They test loading of UTF-16 and UTF-32 encoded documents.
  • All of non-UTF-8 test samples.
  • Python-specific constructor test samples.

Cuted off:

Added:

  • Constructor test samples for JavaScript-specific tags.

Dervus Grim added 30 commits November 30, 2012 23:42
Switch to Mocha and hide Node-specific APIs from tests, which does not
need them.
It is intended to use as a framework for the tests, and it will contain
all of the helpers, utilities, and other shared code.
var assert = require('assert');
var jsyaml = require('../../lib/js-yaml');
var _errors = require('../../lib/js-yaml/errors');
var _functional = require('../support/functional');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why these variables starts with _?

@ixti
Copy link
Contributor

ixti commented Dec 19, 2012

Can you please align = in a same column upon variables declarations that re going vertically:

var foo    = require('foo');
var bar    = require('bar');
var mooboo = require('mooo');

var Context = require('./assert-paranoid-equal/context');


function paranoidEqual(value1, value2) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs description.

@dervus
Copy link
Collaborator Author

dervus commented Dec 20, 2012

Hm... Seems like Travis don't like shims. I do not exactly understand the reason of this build fail.

@dervus
Copy link
Collaborator Author

dervus commented Dec 20, 2012

Yeah. Seems it was Travis' bug.

@dervus
Copy link
Collaborator Author

dervus commented Dec 20, 2012

If you have no more remarks, it is ready to merge.

ixti added a commit that referenced this pull request Dec 20, 2012
Port the tests to Mocha. And some of the missed PyYAML tests.
@ixti ixti merged commit ca5722f into nodeca:master Dec 20, 2012
@dervus dervus deleted the mocha branch December 21, 2012 09:04
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.

2 participants