Skip to content

Introduce gmock Eigen matrix matchers#2939

Merged
ahojnnes merged 5 commits into
mainfrom
user/jsch/eigen-matchers
Nov 26, 2024
Merged

Introduce gmock Eigen matrix matchers#2939
ahojnnes merged 5 commits into
mainfrom
user/jsch/eigen-matchers

Conversation

@ahojnnes

Copy link
Copy Markdown
Contributor

Using gmock matchers instead of a.isApprox(b) has the advantage of providing more readable output to the user. In case of a test failure, the matrix shape or contents will be printed to the console. Another benefit is that one can embed them into more complex gmock match expressions. This paves the way for better testing some of our interfaces through mocks and fakes.

@ahojnnes ahojnnes enabled auto-merge (squash) November 26, 2024 08:47
@ahojnnes ahojnnes merged commit 54acf49 into main Nov 26, 2024
@ahojnnes ahojnnes deleted the user/jsch/eigen-matchers branch November 26, 2024 09:38
HernandoR pushed a commit to HernandoR/colmap that referenced this pull request Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants