aboutsummaryrefslogtreecommitdiff
path: root/test/std/strings/basic.string/string.nonmembers/string_op!=
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-08-20 18:01:01 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-08-20 18:01:01 +0000
commitb7332b04df5d50c92640c74cfeb138ecb7e3f7ae (patch)
treeb1b49faa0cab1482905e0cda6f0ee5d97e3fe08f /test/std/strings/basic.string/string.nonmembers/string_op!=
parent6012fe9abb1f01b1b5b4ca908464804c21ff8602 (diff)
Notes
Diffstat (limited to 'test/std/strings/basic.string/string.nonmembers/string_op!=')
-rw-r--r--test/std/strings/basic.string/string.nonmembers/string_op!=/pointer_string.pass.cpp69
-rw-r--r--test/std/strings/basic.string/string.nonmembers/string_op!=/string_pointer.pass.cpp69
-rw-r--r--test/std/strings/basic.string/string.nonmembers/string_op!=/string_string.pass.cpp70
-rw-r--r--test/std/strings/basic.string/string.nonmembers/string_op!=/string_string_view.pass.cpp70
-rw-r--r--test/std/strings/basic.string/string.nonmembers/string_op!=/string_view_string.pass.cpp70
5 files changed, 0 insertions, 348 deletions
diff --git a/test/std/strings/basic.string/string.nonmembers/string_op!=/pointer_string.pass.cpp b/test/std/strings/basic.string/string.nonmembers/string_op!=/pointer_string.pass.cpp
deleted file mode 100644
index 6d39d025c585..000000000000
--- a/test/std/strings/basic.string/string.nonmembers/string_op!=/pointer_string.pass.cpp
+++ /dev/null
@@ -1,69 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <string>
-
-// template<class charT, class traits, class Allocator>
-// bool operator!=(const charT* lhs, const basic_string<charT,traits,Allocator>& rhs);
-
-#include <string>
-#include <cassert>
-
-#include "min_allocator.h"
-
-template <class S>
-void
-test(const typename S::value_type* lhs, const S& rhs, bool x)
-{
- assert((lhs != rhs) == x);
-}
-
-int main()
-{
- {
- typedef std::string S;
- test("", S(""), false);
- test("", S("abcde"), true);
- test("", S("abcdefghij"), true);
- test("", S("abcdefghijklmnopqrst"), true);
- test("abcde", S(""), true);
- test("abcde", S("abcde"), false);
- test("abcde", S("abcdefghij"), true);
- test("abcde", S("abcdefghijklmnopqrst"), true);
- test("abcdefghij", S(""), true);
- test("abcdefghij", S("abcde"), true);
- test("abcdefghij", S("abcdefghij"), false);
- test("abcdefghij", S("abcdefghijklmnopqrst"), true);
- test("abcdefghijklmnopqrst", S(""), true);
- test("abcdefghijklmnopqrst", S("abcde"), true);
- test("abcdefghijklmnopqrst", S("abcdefghij"), true);
- test("abcdefghijklmnopqrst", S("abcdefghijklmnopqrst"), false);
- }
-#if TEST_STD_VER >= 11
- {
- typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;
- test("", S(""), false);
- test("", S("abcde"), true);
- test("", S("abcdefghij"), true);
- test("", S("abcdefghijklmnopqrst"), true);
- test("abcde", S(""), true);
- test("abcde", S("abcde"), false);
- test("abcde", S("abcdefghij"), true);
- test("abcde", S("abcdefghijklmnopqrst"), true);
- test("abcdefghij", S(""), true);
- test("abcdefghij", S("abcde"), true);
- test("abcdefghij", S("abcdefghij"), false);
- test("abcdefghij", S("abcdefghijklmnopqrst"), true);
- test("abcdefghijklmnopqrst", S(""), true);
- test("abcdefghijklmnopqrst", S("abcde"), true);
- test("abcdefghijklmnopqrst", S("abcdefghij"), true);
- test("abcdefghijklmnopqrst", S("abcdefghijklmnopqrst"), false);
- }
-#endif
-}
diff --git a/test/std/strings/basic.string/string.nonmembers/string_op!=/string_pointer.pass.cpp b/test/std/strings/basic.string/string.nonmembers/string_op!=/string_pointer.pass.cpp
deleted file mode 100644
index 67d18b7a9ca7..000000000000
--- a/test/std/strings/basic.string/string.nonmembers/string_op!=/string_pointer.pass.cpp
+++ /dev/null
@@ -1,69 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <string>
-
-// template<class charT, class traits, class Allocator>
-// bool operator!=(const basic_string<charT,traits,Allocator>& lhs, const charT* rhs);
-
-#include <string>
-#include <cassert>
-
-#include "min_allocator.h"
-
-template <class S>
-void
-test(const S& lhs, const typename S::value_type* rhs, bool x)
-{
- assert((lhs != rhs) == x);
-}
-
-int main()
-{
- {
- typedef std::string S;
- test(S(""), "", false);
- test(S(""), "abcde", true);
- test(S(""), "abcdefghij", true);
- test(S(""), "abcdefghijklmnopqrst", true);
- test(S("abcde"), "", true);
- test(S("abcde"), "abcde", false);
- test(S("abcde"), "abcdefghij", true);
- test(S("abcde"), "abcdefghijklmnopqrst", true);
- test(S("abcdefghij"), "", true);
- test(S("abcdefghij"), "abcde", true);
- test(S("abcdefghij"), "abcdefghij", false);
- test(S("abcdefghij"), "abcdefghijklmnopqrst", true);
- test(S("abcdefghijklmnopqrst"), "", true);
- test(S("abcdefghijklmnopqrst"), "abcde", true);
- test(S("abcdefghijklmnopqrst"), "abcdefghij", true);
- test(S("abcdefghijklmnopqrst"), "abcdefghijklmnopqrst", false);
- }
-#if TEST_STD_VER >= 11
- {
- typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;
- test(S(""), "", false);
- test(S(""), "abcde", true);
- test(S(""), "abcdefghij", true);
- test(S(""), "abcdefghijklmnopqrst", true);
- test(S("abcde"), "", true);
- test(S("abcde"), "abcde", false);
- test(S("abcde"), "abcdefghij", true);
- test(S("abcde"), "abcdefghijklmnopqrst", true);
- test(S("abcdefghij"), "", true);
- test(S("abcdefghij"), "abcde", true);
- test(S("abcdefghij"), "abcdefghij", false);
- test(S("abcdefghij"), "abcdefghijklmnopqrst", true);
- test(S("abcdefghijklmnopqrst"), "", true);
- test(S("abcdefghijklmnopqrst"), "abcde", true);
- test(S("abcdefghijklmnopqrst"), "abcdefghij", true);
- test(S("abcdefghijklmnopqrst"), "abcdefghijklmnopqrst", false);
- }
-#endif
-}
diff --git a/test/std/strings/basic.string/string.nonmembers/string_op!=/string_string.pass.cpp b/test/std/strings/basic.string/string.nonmembers/string_op!=/string_string.pass.cpp
deleted file mode 100644
index 27e97788c637..000000000000
--- a/test/std/strings/basic.string/string.nonmembers/string_op!=/string_string.pass.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <string>
-
-// template<class charT, class traits, class Allocator>
-// bool operator!=(const basic_string<charT,traits,Allocator>& lhs,
-// const basic_string<charT,traits,Allocator>& rhs);
-
-#include <string>
-#include <cassert>
-
-#include "min_allocator.h"
-
-template <class S>
-void
-test(const S& lhs, const S& rhs, bool x)
-{
- assert((lhs != rhs) == x);
-}
-
-int main()
-{
- {
- typedef std::string S;
- test(S(""), S(""), false);
- test(S(""), S("abcde"), true);
- test(S(""), S("abcdefghij"), true);
- test(S(""), S("abcdefghijklmnopqrst"), true);
- test(S("abcde"), S(""), true);
- test(S("abcde"), S("abcde"), false);
- test(S("abcde"), S("abcdefghij"), true);
- test(S("abcde"), S("abcdefghijklmnopqrst"), true);
- test(S("abcdefghij"), S(""), true);
- test(S("abcdefghij"), S("abcde"), true);
- test(S("abcdefghij"), S("abcdefghij"), false);
- test(S("abcdefghij"), S("abcdefghijklmnopqrst"), true);
- test(S("abcdefghijklmnopqrst"), S(""), true);
- test(S("abcdefghijklmnopqrst"), S("abcde"), true);
- test(S("abcdefghijklmnopqrst"), S("abcdefghij"), true);
- test(S("abcdefghijklmnopqrst"), S("abcdefghijklmnopqrst"), false);
- }
-#if TEST_STD_VER >= 11
- {
- typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;
- test(S(""), S(""), false);
- test(S(""), S("abcde"), true);
- test(S(""), S("abcdefghij"), true);
- test(S(""), S("abcdefghijklmnopqrst"), true);
- test(S("abcde"), S(""), true);
- test(S("abcde"), S("abcde"), false);
- test(S("abcde"), S("abcdefghij"), true);
- test(S("abcde"), S("abcdefghijklmnopqrst"), true);
- test(S("abcdefghij"), S(""), true);
- test(S("abcdefghij"), S("abcde"), true);
- test(S("abcdefghij"), S("abcdefghij"), false);
- test(S("abcdefghij"), S("abcdefghijklmnopqrst"), true);
- test(S("abcdefghijklmnopqrst"), S(""), true);
- test(S("abcdefghijklmnopqrst"), S("abcde"), true);
- test(S("abcdefghijklmnopqrst"), S("abcdefghij"), true);
- test(S("abcdefghijklmnopqrst"), S("abcdefghijklmnopqrst"), false);
- }
-#endif
-}
diff --git a/test/std/strings/basic.string/string.nonmembers/string_op!=/string_string_view.pass.cpp b/test/std/strings/basic.string/string.nonmembers/string_op!=/string_string_view.pass.cpp
deleted file mode 100644
index 65649465da29..000000000000
--- a/test/std/strings/basic.string/string.nonmembers/string_op!=/string_string_view.pass.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <string>
-
-// we get this comparison "for free" because the string implicitly converts to the string_view
-
-#include <string>
-#include <cassert>
-
-#include "min_allocator.h"
-
-template <class S, class SV>
-void
-test(const S& lhs, SV rhs, bool x)
-{
- assert((lhs != rhs) == x);
-}
-
-int main()
-{
- {
- typedef std::string S;
- typedef std::string SV;
- test(S(""), SV(""), false);
- test(S(""), SV("abcde"), true);
- test(S(""), SV("abcdefghij"), true);
- test(S(""), SV("abcdefghijklmnopqrst"), true);
- test(S("abcde"), SV(""), true);
- test(S("abcde"), SV("abcde"), false);
- test(S("abcde"), SV("abcdefghij"), true);
- test(S("abcde"), SV("abcdefghijklmnopqrst"), true);
- test(S("abcdefghij"), SV(""), true);
- test(S("abcdefghij"), SV("abcde"), true);
- test(S("abcdefghij"), SV("abcdefghij"), false);
- test(S("abcdefghij"), SV("abcdefghijklmnopqrst"), true);
- test(S("abcdefghijklmnopqrst"), SV(""), true);
- test(S("abcdefghijklmnopqrst"), SV("abcde"), true);
- test(S("abcdefghijklmnopqrst"), SV("abcdefghij"), true);
- test(S("abcdefghijklmnopqrst"), SV("abcdefghijklmnopqrst"), false);
- }
-#if TEST_STD_VER >= 11
- {
- typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;
- typedef std::basic_string_view<char, std::char_traits<char>> SV;
- test(S(""), SV(""), false);
- test(S(""), SV("abcde"), true);
- test(S(""), SV("abcdefghij"), true);
- test(S(""), SV("abcdefghijklmnopqrst"), true);
- test(S("abcde"), SV(""), true);
- test(S("abcde"), SV("abcde"), false);
- test(S("abcde"), SV("abcdefghij"), true);
- test(S("abcde"), SV("abcdefghijklmnopqrst"), true);
- test(S("abcdefghij"), SV(""), true);
- test(S("abcdefghij"), SV("abcde"), true);
- test(S("abcdefghij"), SV("abcdefghij"), false);
- test(S("abcdefghij"), SV("abcdefghijklmnopqrst"), true);
- test(S("abcdefghijklmnopqrst"), SV(""), true);
- test(S("abcdefghijklmnopqrst"), SV("abcde"), true);
- test(S("abcdefghijklmnopqrst"), SV("abcdefghij"), true);
- test(S("abcdefghijklmnopqrst"), SV("abcdefghijklmnopqrst"), false);
- }
-#endif
-}
diff --git a/test/std/strings/basic.string/string.nonmembers/string_op!=/string_view_string.pass.cpp b/test/std/strings/basic.string/string.nonmembers/string_op!=/string_view_string.pass.cpp
deleted file mode 100644
index 88c758c7aa70..000000000000
--- a/test/std/strings/basic.string/string.nonmembers/string_op!=/string_view_string.pass.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <string>
-
-// we get this comparison "for free" because the string implicitly converts to the string_view
-
-#include <string>
-#include <cassert>
-
-#include "min_allocator.h"
-
-template <class S, class SV>
-void
-test(SV lhs, const S& rhs, bool x)
-{
- assert((lhs != rhs) == x);
-}
-
-int main()
-{
- {
- typedef std::string S;
- typedef std::string_view SV;
- test(SV(""), S(""), false);
- test(SV(""), S("abcde"), true);
- test(SV(""), S("abcdefghij"), true);
- test(SV(""), S("abcdefghijklmnopqrst"), true);
- test(SV("abcde"), S(""), true);
- test(SV("abcde"), S("abcde"), false);
- test(SV("abcde"), S("abcdefghij"), true);
- test(SV("abcde"), S("abcdefghijklmnopqrst"), true);
- test(SV("abcdefghij"), S(""), true);
- test(SV("abcdefghij"), S("abcde"), true);
- test(SV("abcdefghij"), S("abcdefghij"), false);
- test(SV("abcdefghij"), S("abcdefghijklmnopqrst"), true);
- test(SV("abcdefghijklmnopqrst"), S(""), true);
- test(SV("abcdefghijklmnopqrst"), S("abcde"), true);
- test(SV("abcdefghijklmnopqrst"), S("abcdefghij"), true);
- test(SV("abcdefghijklmnopqrst"), S("abcdefghijklmnopqrst"), false);
- }
-#if TEST_STD_VER >= 11
- {
- typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;
- typedef std::basic_string_view<char, std::char_traits<char>> SV;
- test(SV(""), S(""), false);
- test(SV(""), S("abcde"), true);
- test(SV(""), S("abcdefghij"), true);
- test(SV(""), S("abcdefghijklmnopqrst"), true);
- test(SV("abcde"), S(""), true);
- test(SV("abcde"), S("abcde"), false);
- test(SV("abcde"), S("abcdefghij"), true);
- test(SV("abcde"), S("abcdefghijklmnopqrst"), true);
- test(SV("abcdefghij"), S(""), true);
- test(SV("abcdefghij"), S("abcde"), true);
- test(SV("abcdefghij"), S("abcdefghij"), false);
- test(SV("abcdefghij"), S("abcdefghijklmnopqrst"), true);
- test(SV("abcdefghijklmnopqrst"), S(""), true);
- test(SV("abcdefghijklmnopqrst"), S("abcde"), true);
- test(SV("abcdefghijklmnopqrst"), S("abcdefghij"), true);
- test(SV("abcdefghijklmnopqrst"), S("abcdefghijklmnopqrst"), false);
- }
-#endif
-}