[gtksourceviewmm/devel] Some minor fixes in tests.



commit ee70d5d3051f1f5f4dbbb67e8676416f6f254268
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Mon Jan 11 12:53:17 2010 +0100

    Some minor fixes in tests.
    
    * tests/langs/main.cc: Remove an apostrophe from output text.
    * tests/search/main.cc: Use nondeprecated flags.

 tests/langs/main.cc  |    2 +-
 tests/search/main.cc |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/langs/main.cc b/tests/langs/main.cc
index c39f007..9e54526 100644
--- a/tests/langs/main.cc
+++ b/tests/langs/main.cc
@@ -16,7 +16,7 @@ main (int argc, char **argv)
     Glib::RefPtr<SourceLanguageManager> language_manager =
                                                 SourceLanguageManager::create();
     vector<Glib::ustring > langs = language_manager->get_language_ids ();
-    cout << "number of languages found:'" << langs.size () << std::endl;;
+    cout << "number of languages found: " << langs.size () << std::endl;;
 
     for (vector<Glib::ustring>::const_iterator iter = langs.begin(); iter != langs.end (); ++iter) {
         if (!(iter->empty())) {
diff --git a/tests/search/main.cc b/tests/search/main.cc
index 7921289..8abbc8a 100644
--- a/tests/search/main.cc
+++ b/tests/search/main.cc
@@ -237,7 +237,7 @@ public:
             limit = source_buffer->end () ;
             found = search_iter.forward_search
                                     (a_text,
-                                     SEARCH_TEXT_ONLY|SEARCH_CASE_INSENSITIVE,
+                                     SOURCE_SEARCH_TEXT_ONLY | SOURCE_SEARCH_CASE_INSENSITIVE,
                                      start,
                                      end,
                                      limit) ;
@@ -248,7 +248,7 @@ public:
             limit = source_buffer->begin () ;
             found = search_iter.backward_search
                                     (a_text,
-                                     SEARCH_TEXT_ONLY|SEARCH_CASE_INSENSITIVE,
+                                     SOURCE_SEARCH_TEXT_ONLY | SOURCE_SEARCH_CASE_INSENSITIVE,
                                      start,
                                      end,
                                      limit) ;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]