Sha256: 72e87674db06a635d8513cf8cdc19ffbcc0749c6daffee824b1dacb97c4de4b2

Contents?: true

Size: 454 Bytes

Versions: 141

Compression:

Stored size: 454 Bytes

Contents

var Matrix = require('./matrix');

describe('Matrix', function () {
  it('can extract a row', function () {
    expect(new Matrix('1 2\n10 20').rows[0]).toEqual([1, 2]);
  });

  xit('can extract the other row', function () {
    expect(new Matrix('9 8 7\n19 18 17').rows[1]).toEqual([19, 18, 17]);
  });

  xit('can extract a column', function () {
    expect(new Matrix('89 1903 3\n18 3 1\n9 4 800').columns[1])
      .toEqual([1903, 3, 4]);
  });
});

Version data entries

141 entries across 141 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.179 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.178 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.177 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.176 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.175 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.174 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.173 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.172 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.171 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.170 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.169 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.167 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.166 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.165 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.164 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.163 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.162 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.161 tracks/javascript/exercises/matrix/matrix.spec.js
trackler-2.2.1.160 tracks/javascript/exercises/matrix/matrix.spec.js