Proper comparison in unit tests; remove leftover static keyword
This commit is contained in:
parent
8478ddc470
commit
e3e90de02a
@ -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);
|
||||
|
@ -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@")
|
||||
|
Loading…
x
Reference in New Issue
Block a user