summaryrefslogtreecommitdiff
path: root/test/unittest_core.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/unittest_core.cxx')
-rw-r--r--test/unittest_core.cxx27
1 files changed, 1 insertions, 26 deletions
diff --git a/test/unittest_core.cxx b/test/unittest_core.cxx
index c3dad3b37..75742ed80 100644
--- a/test/unittest_core.cxx
+++ b/test/unittest_core.cxx
@@ -24,32 +24,7 @@
#include <FL/filename.H>
#include <FL/fl_utf8.h>
-#include <string>
-
-
-/* Test additions to Fl_Preferences. */
-TEST(Fl_Preferences, Strings) {
- {
- Fl_Preferences prefs(Fl_Preferences::USER_L, "fltk.org", "unittests");
- prefs.set("a", std::string());
- prefs.set("b", std::string("Hello"));
- prefs.set("c", std::string("Hel\\l\nö"));
- }
- {
- Fl_Preferences prefs(Fl_Preferences::USER_L, "fltk.org", "unittests");
- std::string r;
- prefs.get("a", r, "x");
- EXPECT_STREQ(r.c_str(), "");
- prefs.get("b", r, "x");
- EXPECT_STREQ(r.c_str(), "Hello");
- prefs.get("c", r, "x");
- EXPECT_STREQ(r.c_str(), "Hel\\l\nö");
- prefs.get("d", r, "x");
- EXPECT_STREQ(r.c_str(), "x");
- }
- return true;
-}
-
+// std::string tests disabled - API to be removed
#if 0
TEST(fl_filename, ext) {