![]() |
Audacity 3.2.0
|
Tests for the FromChars functions. More...
#include <catch2/catch.hpp>#include <string>#include <string_view>#include <type_traits>#include "FromChars.h"Go to the source code of this file.
Functions | |
| template<typename T > | |
| void | TestFromChars (std::string_view input, T expectedValue, std::errc errc={}) |
| TEMPLATE_TEST_CASE ("FromChars/signed integers", "", short, int, long, long long) | |
| TEMPLATE_TEST_CASE ("FromChars/unsigned integers", "", unsigned short, unsigned int, unsigned long, unsigned long long) | |
| TEMPLATE_TEST_CASE ("FromChars/floats", "", float, double) | |
Tests for the FromChars functions.
Audacity: A Digital Audio Editor
Dmitry Vedenko
Definition in file FromCharsTests.cpp.
| TEMPLATE_TEST_CASE | ( | "FromChars/floats" | , |
| "" | , | ||
| float | , | ||
| double | |||
| ) |
Definition at line 95 of file FromCharsTests.cpp.
References TestFromChars().
| TEMPLATE_TEST_CASE | ( | "FromChars/signed integers" | , |
| "" | , | ||
| short | , | ||
| int | , | ||
| long | , | ||
| long long | |||
| ) |
Definition at line 40 of file FromCharsTests.cpp.
References min().
| TEMPLATE_TEST_CASE | ( | "FromChars/unsigned integers" | , |
| "" | , | ||
| unsigned short | , | ||
| unsigned int | , | ||
| unsigned long | , | ||
| unsigned long long | |||
| ) |
Definition at line 69 of file FromCharsTests.cpp.
References min().
| void TestFromChars | ( | std::string_view | input, |
| T | expectedValue, | ||
| std::errc | errc = {} |
||
| ) |
Definition at line 20 of file FromCharsTests.cpp.
Referenced by TEMPLATE_TEST_CASE().