diff options
author | Mathieu Lacage <mathieu@eazel.com> | 2000-08-16 16:33:16 +0000 |
---|---|---|
committer | Mathieu Lacage <mathieu@src.gnome.org> | 2000-08-16 16:33:16 +0000 |
commit | 6d3018f4289706c69deef8de57ad5a5af621c9b8 (patch) | |
tree | 8603228a73bb0f64fdebf8ca843a63078c91e000 /libnautilus-private/nautilus-search-uri.c | |
parent | 4d392c11238105b243cfb6b6921b92e978bc403c (diff) | |
download | nautilus-6d3018f4289706c69deef8de57ad5a5af621c9b8.tar.gz |
add more tests.
2000-08-16 Mathieu Lacage <mathieu@eazel.com>
* libnautilus-extensions/nautilus-search-uri.c:
(nautilus_self_check_search_uri): add more tests.
Diffstat (limited to 'libnautilus-private/nautilus-search-uri.c')
-rw-r--r-- | libnautilus-private/nautilus-search-uri.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libnautilus-private/nautilus-search-uri.c b/libnautilus-private/nautilus-search-uri.c index 69bf66b38..59af11d07 100644 --- a/libnautilus-private/nautilus-search-uri.c +++ b/libnautilus-private/nautilus-search-uri.c @@ -278,10 +278,10 @@ static operand_criterion_item owner2_table [] = { */ static operand_criterion_item size2_table [] = { {"larger_than", - N_("size is larger than %s kilobytes"), + N_("size is larger than %s bytes"), NULL}, {"smaller_than", - N_("size is smaller than %s kilobytes"), + N_("size is smaller than %s bytes"), NULL}, {"is", N_("size is %s kilobytes"), @@ -671,6 +671,15 @@ nautilus_self_check_search_uri (void) NAUTILUS_CHECK_STRING_RESULT (nautilus_search_uri_to_human ("search:[][]file_name contains stu|ff & file_type is file"), "search:[][]file_name contains stu|ff & file_type is file"); + /* make sure all the code paths work */ + NAUTILUS_CHECK_STRING_RESULT (nautilus_search_uri_to_human ("search:[][]file_name contains stuff"), + "Search results for items whose name contains \"stuff\"."); + NAUTILUS_CHECK_STRING_RESULT (nautilus_search_uri_to_human ("search:[][]file_name contains stuff & file_type is file"), + "Search results for items whose name contains \"stuff\" and are regular files."); + NAUTILUS_CHECK_STRING_RESULT (nautilus_search_uri_to_human ("search:[][]file_name contains stuff & file_type is file" + " & size smaller_than 2000"), + "Search results for items whose name contains \"stuff\", are regular files and size is " + "smaller than 2000 bytes."); /* FIXME: Need a lot more tests. */ |