aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-04-10 19:08:07 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-04-10 19:29:23 -0700
commit46840ae3753bb48fd6042b6e140ae1271dc84fdc (patch)
tree121f9a99d635bca06c197734fd47e90f00a440b4 /src/fish_tests.cpp
parent59f0261dba993a5d632ce6e9963270a582d162e6 (diff)
another wcstring to wchar_t * change
In keeping with the change made by @ridiculousfish earlier today modify the `keyword_description()` function to return a const wchar_t pointer. Also, simplify the `token_type_description()` function to use the recently introduced mapping array. This changes the wording of many of the token type descriptions. However, I can't see this as being a problem since the original descriptions (e.g., "token_redirection") are no clearer to someone not acquainted with the implementation.
Diffstat (limited to 'src/fish_tests.cpp')
-rw-r--r--src/fish_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp
index 6250513c..ef1956cc 100644
--- a/src/fish_tests.cpp
+++ b/src/fish_tests.cpp
@@ -3628,11 +3628,11 @@ static void test_new_parser_ll2(void)
const parse_node_tree_t::parse_node_list_t node_list = tree.find_nodes(tree.at(0), tests2[i].type);
if (node_list.size() == 0)
{
- err(L"Failed to find node of type '%ls'", token_type_description(tests2[i].type).c_str());
+ err(L"Failed to find node of type '%ls'", token_type_description(tests2[i].type));
}
else if (node_list.size() > 1)
{
- err(L"Found too many nodes of type '%ls'", token_type_description(tests2[i].type).c_str());
+ err(L"Found too many nodes of type '%ls'", token_type_description(tests2[i].type));
}
}
}