Sha256: f5cf821585482107e5c0e1f5d99d8516699900ee82c3395fba53288aaba1a414

Contents?: true

Size: 429 Bytes

Versions: 208

Compression:

Stored size: 429 Bytes

Contents

import Matrix from './matrix';

describe('Matrix', () => {

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

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

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

});

Version data entries

208 entries across 208 versions & 1 rubygems

Version Path
trackler-2.0.8.28 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.27 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.26 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.24 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.23 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.22 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.21 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.20 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.19 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.18 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.17 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.16 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.15 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.14 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.13 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.12 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.11 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.10 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.9 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.0.8.8 tracks/ecmascript/exercises/matrix/matrix.spec.js