mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-13 19:18:01 +07:00
rename manuals test cases
This commit is contained in:
@@ -42,7 +42,7 @@ namespace
|
||||
};
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/class/type") {
|
||||
TEST_CASE("meta/meta_manuals/class/type") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
// '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;
|
||||
|
||||
// resolves a class type by static class type
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace
|
||||
};
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/enum/type") {
|
||||
TEST_CASE("meta/meta_manuals/enum/type") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
// '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;
|
||||
|
||||
const align e = align::center;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/function/type") {
|
||||
TEST_CASE("meta/meta_manuals/function/type") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
// 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>());
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/function/usage") {
|
||||
TEST_CASE("meta/meta_manuals/function/usage") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
// 'math' local scope declaration
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace
|
||||
};
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/inplace") {
|
||||
TEST_CASE("meta/meta_manuals/inplace") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
// 'ivec2' class type registration
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace
|
||||
};
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/member/type") {
|
||||
TEST_CASE("meta/meta_manuals/member/type") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
// '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>());
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/member/usage") {
|
||||
TEST_CASE("meta/meta_manuals/member/usage") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
ivec2 v{42, 21};
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace
|
||||
};
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/method/type") {
|
||||
TEST_CASE("meta/meta_manuals/method/type") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
// '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&>());
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/method/usage") {
|
||||
TEST_CASE("meta/meta_manuals/method/usage") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
ivec2 v{20, 10};
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/scopes/local") {
|
||||
TEST_CASE("meta/meta_manuals/scopes/local") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
// 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);
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/scopes/global") {
|
||||
TEST_CASE("meta/meta_manuals/scopes/global") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
// 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_("dot3", &dot3)
|
||||
.variable_("unit2", &unit2)
|
||||
.variable_("unit3", &unit3);
|
||||
|
||||
// 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
|
||||
const meta::function dot2_function = math_scope.get_function("dot2");
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace
|
||||
};
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/uvalue") {
|
||||
TEST_CASE("meta/meta_manuals/uvalue") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
// 'shape' class type registration
|
||||
@@ -55,7 +55,7 @@ TEST_CASE("meta/meta_examples/uvalue") {
|
||||
.method_("get_height", &rectangle::get_height);
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/uvalue/usage") {
|
||||
TEST_CASE("meta/meta_manuals/uvalue/usage") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
// the 'uvalue' class allows to store any copyable value inside
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace
|
||||
const double sqrt2_v{1.4142135624};
|
||||
}
|
||||
|
||||
TEST_CASE("meta/meta_examples/variable/usage") {
|
||||
TEST_CASE("meta/meta_manuals/variable/usage") {
|
||||
namespace meta = meta_hpp;
|
||||
|
||||
// 'constants' local scope declaration
|
||||
|
||||
Reference in New Issue
Block a user