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.1.0.53 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.52 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.51 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.50 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.49 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.48 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.47 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.46 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.45 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.44 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.43 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.42 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.41 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.40 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.39 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.38 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.37 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.36 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.34 tracks/ecmascript/exercises/matrix/matrix.spec.js
trackler-2.1.0.33 tracks/ecmascript/exercises/matrix/matrix.spec.js