Skip to content

tests: add unit tests for matrix class increasing math utilities coverage#454

Merged
jnyfah merged 10 commits intoJeanPhilippeKernel:developfrom
AmanMenda:tests/matrix
Jun 17, 2025
Merged

tests: add unit tests for matrix class increasing math utilities coverage#454
jnyfah merged 10 commits intoJeanPhilippeKernel:developfrom
AmanMenda:tests/matrix

Conversation

@AmanMenda
Copy link
Contributor

@AmanMenda AmanMenda commented Jun 1, 2025

  • construction tests (default construction, construction with params, vector construction, copy construction)
  • indexing operator
  • arithmetic operations (addition, substraction, div, multiplication, scalar multiplication and division)
  • identity matrices
  • edges cases (zero division, large values, small values, chained operations with matrices
  • inverse tests

@JeanPhilippeKernel JeanPhilippeKernel added enhancement New feature or request area-window Work on Window system labels Jun 2, 2025
@JeanPhilippeKernel JeanPhilippeKernel moved this to In Progress in ZEngine Board Jun 2, 2025
@JeanPhilippeKernel JeanPhilippeKernel added this to the Born baby (0.2.0) milestone Jun 2, 2025
@JeanPhilippeKernel JeanPhilippeKernel requested a review from jnyfah June 2, 2025 22:37
EXPECT_NEAR(result(1, 1), 2.0f, EPSILON); // (1*2) + 1 - 1 = 2
}

TEST(MatrixTest, ConstructionAndIndexingFloat)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should be removed since there is not a comprehensive ParameterConstruction test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I remove the entire chainedOperations test ?

Copy link
Collaborator

@jnyfah jnyfah Jun 9, 2025

Choose a reason for hiding this comment

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

ohh @AmanMenda i meant just remove the ConstructionAndIndexingFloat test

@jnyfah
Copy link
Collaborator

jnyfah commented Jun 12, 2025

Hi @AmanMenda Are you done with this?? I see you have the 4X4 inverse in so everything looks good to me

@jnyfah jnyfah self-requested a review June 17, 2025 18:59
@jnyfah jnyfah merged commit d8aa9f3 into JeanPhilippeKernel:develop Jun 17, 2025
17 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in ZEngine Board Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-window Work on Window system enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add Unit Tests for Matrix and Extend Test Coverage for Math Utilities

3 participants