Skip to content

Commit

Permalink
Proper comparison in unit tests; remove leftover static keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
ELynx committed Jun 27, 2016
1 parent 8478ddc commit e3e90de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/chaiscript/language/chaiscript_parser.hpp
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions unittests/string_unicode_parse.chai
Expand Up @@ -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@")

0 comments on commit e3e90de

Please sign in to comment.