Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Native ApprovalTests for C++ on Linux, Mac and Windows

License

NotificationsYou must be signed in to change notification settings

approvals/ApprovalTests.cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Approval Tests for C++

buildcygwinmingwpython-tests

ConanCenter packagevcpkg
Documentation Status
LicenseContributor Covenant

⬇️Download the latest version (v.10.13.0) of thesingle header file here.

📖Read the Docs

Contents

What are Approval Tests?

Also known asGolden Master Tests orSnapshot Testing, Approval Tests are an alternative to asserts. If you are unfamiliar with them, we have anoverview and atutorial.

They are great for testing objects with lots of fields, or lists of objects.

Requirements

Getting Started

ToString (ostream insertion)

Often, you will need to create functions to allow objects to print their state. This is commonly done with an ostream<< operator.You can find examples here:To String

What's new?

Check out theFeatures page orupcoming release notes to see what we've been working on lately, or browse thepast release notes.

Feedback

If you have any comment or suggestion on this documentation, please email Llewellyn or Clare via the details in theContributing page.


[8]ページ先頭

©2009-2025 Movatter.jp