mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
Renamed test filename
This commit is contained in:
parent
34c9ec8a97
commit
953f7d9462
@ -121,8 +121,7 @@ struct Argument {
|
|||||||
T tResult;
|
T tResult;
|
||||||
if (mValues.size() == 0) {
|
if (mValues.size() == 0) {
|
||||||
if (mDefaultValue.has_value()) {
|
if (mDefaultValue.has_value()) {
|
||||||
std::any tDefaultValueLambdaResult = mDefaultValue;
|
T tDefaultValues = std::any_cast<T>(mDefaultValue);
|
||||||
T tDefaultValues = std::any_cast<T>(tDefaultValueLambdaResult);
|
|
||||||
for (size_t i = 0; i < tDefaultValues.size(); i++) {
|
for (size_t i = 0; i < tDefaultValues.size(); i++) {
|
||||||
tResult.push_back(std::any_cast<typename T::value_type>(tDefaultValues[i]));
|
tResult.push_back(std::any_cast<typename T::value_type>(tDefaultValues[i]));
|
||||||
}
|
}
|
||||||
@ -140,8 +139,7 @@ struct Argument {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (mDefaultValue.has_value()) {
|
if (mDefaultValue.has_value()) {
|
||||||
std::any tDefaultValueLambdaResult = mDefaultValue;
|
std::vector<T> tDefaultValues = std::any_cast<std::vector<T>>(mDefaultValue);
|
||||||
std::vector<T> tDefaultValues = std::any_cast<std::vector<T>>(tDefaultValueLambdaResult);
|
|
||||||
for (size_t i = 0; i < tDefaultValues.size(); i++) {
|
for (size_t i = 0; i < tDefaultValues.size(); i++) {
|
||||||
tResult.push_back(std::any_cast<typename T::value_type>(tDefaultValues[i]));
|
tResult.push_back(std::any_cast<typename T::value_type>(tDefaultValues[i]));
|
||||||
}
|
}
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
#include <test_optional_arguments.hpp>
|
#include <test_optional_arguments.hpp>
|
||||||
#include <test_compound_arguments.hpp>
|
#include <test_compound_arguments.hpp>
|
||||||
#include <test_actions.hpp>
|
#include <test_actions.hpp>
|
||||||
#include <test_vector_list_arguments.hpp>
|
#include <test_container_arguments.hpp>
|
Loading…
Reference in New Issue
Block a user