Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testcase #718

Merged
merged 1 commit into from
Sep 1, 2019
Merged

Add testcase #718

merged 1 commit into from
Sep 1, 2019

Conversation

DagmarTimmreck
Copy link
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
Contributor Author

See also
exercism/problem-specifications#1576

@SleeplessByte
Copy link
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