mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
fix basic_string constructor
This commit is contained in:
parent
3cba63db54
commit
d7bf483c4a
2 changed files with 25 additions and 4 deletions
|
@ -74,6 +74,14 @@ namespace testspr {
|
|||
SPROUT_STATIC_CONSTEXPR auto s1 = sprout::string_t<10>::type(cstr, cstr + 6);
|
||||
TESTSPR_BOTH_ASSERT(s1 == "foobar");
|
||||
}
|
||||
{
|
||||
SPROUT_STATIC_CONSTEXPR auto s1 = sprout::string_t<10>::type(6, 'f');
|
||||
TESTSPR_BOTH_ASSERT(s1 == "ffffff");
|
||||
}
|
||||
{
|
||||
SPROUT_STATIC_CONSTEXPR auto s1 = sprout::string_t<10>::type(6, int('f'));
|
||||
TESTSPR_BOTH_ASSERT(s1 == "ffffff");
|
||||
}
|
||||
{
|
||||
SPROUT_STATIC_CONSTEXPR auto s1 = sprout::string_t<10>::type(testspr::reduct_input(str1.begin()), testspr::reduct_input(str1.begin() + 6));
|
||||
TESTSPR_BOTH_ASSERT(s1 == "foobar");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue