Skip to content

Add testcase#718

Merged
SleeplessByte merged 1 commit intoexercism:masterfrom
DagmarTimmreck:master
Sep 1, 2019
Merged

Add testcase#718
SleeplessByte merged 1 commit intoexercism:masterfrom
DagmarTimmreck:master

Conversation

@DagmarTimmreck
Copy link
Copy Markdown
Contributor

The following wrong solution passes all previous tests but not the new one:

export class Matrix {
  constructor(string) {
    this._rows = string
      .split('\n')
      .map(row => row.split(' ').map(Number))
    this._columns = this._rows
      .map((_, i) => this._rows.map(row => row[i]))
  }

  get rows() {
    return this._rows
  }

  get columns() {
    return this._columns
  }
}

@DagmarTimmreck
Copy link
Copy Markdown
Contributor Author

See also
exercism/problem-specifications#1576

@SleeplessByte
Copy link
Copy Markdown
Member

Thank you for doing this @DagmarTimmreck ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sync 🔄 Sync an exercise with the latest version of the problem-spec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants