title: Mocha says that assert.equal([0, 0], [0, 0]) fails. Why?
body: <p>I am testing with mocha, some module with some behavior. For example I want that</p>
  
  <pre><code>var module = new Module()
  module.getSomething()
  </code></pre>
  
  <p>will returns [0,0]. So, I'd tried to test it:</p>
  
  <pre><code>var assert = require('assert')
    , Module = require('../lib/module')
  describe('Module()', function () {
      describe('#getSomething()', function () {
          it('should return [0,0] by default', function () {
              var map = new Module()
              assert.equal([0, 0], map.getCenter()[0])
          })
      })
  })
  </code></pre>
  
  <p>Test fails. After some tries, ... I fall into this test:</p>
  
  <pre><code>var assert = require('assert')
  describe('[0,0]', function () {
      it('should be equals to [0,0]', function () {
          assert.equal([0, 0], [0, 0])
      })
  })
  </code></pre>
  
  <p>Mmmm I think I have some gap in javascript. Well, .. I need to create a module that at some point returns little objects like {x:0,y:0}. Can someone explain me the way to test this stuff? This way works, ... is correct?</p>
  
  <pre><code>describe('#getCenter()', function () {
      it('should return [0,0] by default', function () {
          var map = new Map()
          assert.equal(0, map.getCenter().x)
          assert.equal(0, map.getCenter().y)
      })
  })
  </code></pre>