rename manuals test cases

This commit is contained in:
BlackMATov
2023-01-13 11:48:13 +07:00
parent 55012305b1
commit 39e4bfef37
9 changed files with 18 additions and 18 deletions

View File

@@ -42,7 +42,7 @@ namespace
}; };
} }
TEST_CASE("meta/meta_examples/class/type") { TEST_CASE("meta/meta_manuals/class/type") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
// 'shape' class type registration // 'shape' class type registration
@@ -67,7 +67,7 @@ TEST_CASE("meta/meta_examples/class/type") {
} }
} }
TEST_CASE("meta/meta_examples/class/usage") { TEST_CASE("meta/meta_manuals/class/usage") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
// resolves a class type by static class type // resolves a class type by static class type

View File

@@ -17,7 +17,7 @@ namespace
}; };
} }
TEST_CASE("meta/meta_examples/enum/type") { TEST_CASE("meta/meta_manuals/enum/type") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
// 'align' enumeration type registration // 'align' enumeration type registration
@@ -43,7 +43,7 @@ TEST_CASE("meta/meta_examples/enum/type") {
} }
} }
TEST_CASE("meta/meta_examples/enum/usage") { TEST_CASE("meta/meta_manuals/enum/usage") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
const align e = align::center; const align e = align::center;

View File

@@ -19,7 +19,7 @@ namespace
} }
} }
TEST_CASE("meta/meta_examples/function/type") { TEST_CASE("meta/meta_manuals/function/type") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
// resolves a function type by pointer // resolves a function type by pointer
@@ -39,7 +39,7 @@ TEST_CASE("meta/meta_examples/function/type") {
CHECK(add_function_type.get_argument_type(1) == meta::resolve_type<int>()); CHECK(add_function_type.get_argument_type(1) == meta::resolve_type<int>());
} }
TEST_CASE("meta/meta_examples/function/usage") { TEST_CASE("meta/meta_manuals/function/usage") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
// 'math' local scope declaration // 'math' local scope declaration

View File

@@ -21,7 +21,7 @@ namespace
}; };
} }
TEST_CASE("meta/meta_examples/inplace") { TEST_CASE("meta/meta_manuals/inplace") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
// 'ivec2' class type registration // 'ivec2' class type registration

View File

@@ -14,7 +14,7 @@ namespace
}; };
} }
TEST_CASE("meta/meta_examples/member/type") { TEST_CASE("meta/meta_manuals/member/type") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
// 'ivec2' class type registration // 'ivec2' class type registration
@@ -35,7 +35,7 @@ TEST_CASE("meta/meta_examples/member/type") {
CHECK(x_member_type.get_value_type() == meta::resolve_type<int>()); CHECK(x_member_type.get_value_type() == meta::resolve_type<int>());
} }
TEST_CASE("meta/meta_examples/member/usage") { TEST_CASE("meta/meta_manuals/member/usage") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
ivec2 v{42, 21}; ivec2 v{42, 21};

View File

@@ -24,7 +24,7 @@ namespace
}; };
} }
TEST_CASE("meta/meta_examples/method/type") { TEST_CASE("meta/meta_manuals/method/type") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
// 'ivec2' class type registration // 'ivec2' class type registration
@@ -50,7 +50,7 @@ TEST_CASE("meta/meta_examples/method/type") {
CHECK(add_method_type.get_argument_type(0) == meta::resolve_type<const ivec2&>()); CHECK(add_method_type.get_argument_type(0) == meta::resolve_type<const ivec2&>());
} }
TEST_CASE("meta/meta_examples/method/usage") { TEST_CASE("meta/meta_manuals/method/usage") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
ivec2 v{20, 10}; ivec2 v{20, 10};

View File

@@ -46,7 +46,7 @@ namespace
} }
} }
TEST_CASE("meta/meta_examples/scopes/local") { TEST_CASE("meta/meta_manuals/scopes/local") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
// creates new local scope // creates new local scope
@@ -86,18 +86,18 @@ TEST_CASE("meta/meta_examples/scopes/local") {
CHECK(dot3_function(unit3_variable.get(), unit3_variable.get()).get_as<int>() == 3); CHECK(dot3_function(unit3_variable.get(), unit3_variable.get()).get_as<int>() == 3);
} }
TEST_CASE("meta/meta_examples/scopes/global") { TEST_CASE("meta/meta_manuals/scopes/global") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
// also, we can create global scopes // also, we can create global scopes
meta::static_scope_("meta/meta_examples/scopes/global/math") meta::static_scope_("meta/meta_manuals/scopes/global/math")
.function_("dot2", &dot2) .function_("dot2", &dot2)
.function_("dot3", &dot3) .function_("dot3", &dot3)
.variable_("unit2", &unit2) .variable_("unit2", &unit2)
.variable_("unit3", &unit3); .variable_("unit3", &unit3);
// finds our global scope by name // finds our global scope by name
const meta::scope math_scope = meta::resolve_scope("meta/meta_examples/scopes/global/math"); const meta::scope math_scope = meta::resolve_scope("meta/meta_manuals/scopes/global/math");
// and uses it in the same way // and uses it in the same way
const meta::function dot2_function = math_scope.get_function("dot2"); const meta::function dot2_function = math_scope.get_function("dot2");

View File

@@ -40,7 +40,7 @@ namespace
}; };
} }
TEST_CASE("meta/meta_examples/uvalue") { TEST_CASE("meta/meta_manuals/uvalue") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
// 'shape' class type registration // 'shape' class type registration
@@ -55,7 +55,7 @@ TEST_CASE("meta/meta_examples/uvalue") {
.method_("get_height", &rectangle::get_height); .method_("get_height", &rectangle::get_height);
} }
TEST_CASE("meta/meta_examples/uvalue/usage") { TEST_CASE("meta/meta_manuals/uvalue/usage") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
// the 'uvalue' class allows to store any copyable value inside // the 'uvalue' class allows to store any copyable value inside

View File

@@ -14,7 +14,7 @@ namespace
const double sqrt2_v{1.4142135624}; const double sqrt2_v{1.4142135624};
} }
TEST_CASE("meta/meta_examples/variable/usage") { TEST_CASE("meta/meta_manuals/variable/usage") {
namespace meta = meta_hpp; namespace meta = meta_hpp;
// 'constants' local scope declaration // 'constants' local scope declaration