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

test: add additional tests to utils/compact-adjacency-matrix #1373

Closed
wants to merge 1 commit into from

Conversation

uchiha-vivek
Copy link

@uchiha-vivek uchiha-vivek commented Feb 24, 2024

Resolves # .

Description

Test Cases for adjacency matrix

What is the purpose of this pull request?

This pull request:

  • a Added more test cases for adjacency matrix.
  • b Checking whether the matrix is null, updation of matrix, and checking for edges between the vertices.
  • c They have been implemented in form of test cases.

Related Issues

Does this pull request have any related issues?

This pull request:

  • resolves #
  • fixes # adding more test-cases

Questions

Any questions for reviewers of this pull request?

Please review the features and suggest changes if required.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.


@stdlib-js/reviewers

Copy link
Contributor

@stdlib-bot stdlib-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋 Hi there! 👋

And thank you for opening your first pull request! We will review it shortly. 🏃 💨

@kgryte kgryte changed the title Added Test Cases to adjacency-matrix test: add additional tests to utils/compact-adjacency-matrix Feb 24, 2024
@kgryte kgryte added Needs Review A pull request which needs code review. Tests Pull requests specifically adding tests. labels Feb 24, 2024
@uchiha-vivek
Copy link
Author

Please review it.

var tape = require( 'tape' );
var instanceOf = require( '@stdlib/assert/instance-of' );
var CompactAdjacencyMatrix = require( './../lib' );
var tape = require('tape');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these style changes should not have been made. Please revert and ensure that you follow project conventions.


tape('initialize the matrix correctly', function test(t) {
var mat = new CompactAdjacencyMatrix(4);
t.deepEqual(mat.matrix, [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@uchiha-vivek Did you run these tests?

Based on what you have here, it does not appear so. There is no matrix attribute, and these tests are not written correctly.

Copy link
Member

@kgryte kgryte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR needs significant changes in order to be merged. I encourage you to see the tests for other packages (e.g., @stdlib/array/complex64) for what we expect in terms of rigor and level of detail.

@kgryte kgryte added Needs Changes Pull request which needs changes before being merged. and removed Needs Review A pull request which needs code review. labels Mar 17, 2024
@Planeshifter Planeshifter added the autoclose: Stale Pull request which should be auto-closed as considered stale. label Oct 13, 2024
@stdlib-bot
Copy link
Contributor

This pull request has been automatically closed because it has been inactive for an extended period after changes were requested. If you still wish to pursue this contribution, feel free to reopen the pull request or submit a new one.

We appreciate your interest in contributing to stdlib!

@stdlib-bot stdlib-bot closed this Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autoclose: Stale Pull request which should be auto-closed as considered stale. Needs Changes Pull request which needs changes before being merged. Tests Pull requests specifically adding tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants