Proper comparison in unit tests; remove leftover static keyword

This commit is contained in:
ELynx 2016-06-27 13:09:32 +03:00
parent 8478ddc470
commit e3e90de02a
2 changed files with 4 additions and 4 deletions

View File

@ -58,14 +58,14 @@ namespace chaiscript
// Generic for u16, u32 and (probably) wchar
template<typename string_type>
static string_type str_from_ll(long long val)
string_type str_from_ll(long long val)
{
return string_type(1, string_type::value_type(val)); //size, character
}
// Specialization for char
template<>
static std::string str_from_ll<std::string>(long long val)
std::string str_from_ll<std::string>(long long val)
{
std::string::value_type c[2];
c[1] = std::string::value_type(val);

View File

@ -6,6 +6,6 @@ assert_equal('\udd', '\uDD')
assert_equal('\u0ee', '\uEE')
assert_equal('\ue', '\u000E')
assert_equal("\u30\u31\u32", "123")
assert_equal("\u33Test", "4Test")
assert_equal("\u30\u31\u32", "012")
assert_equal("\u33Test", "3Test")
assert_equal("Test\u0040", "Test@")