-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Break up tests and use Doxygen 1.9.2!
- Loading branch information
Showing
11 changed files
with
300 additions
and
14 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
tests/basic_compile_time/source/validate_decodable_as.unicode.default.utf16.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// ============================================================================= | ||
// | ||
// ztd.text | ||
// Copyright © 2021 JeanHeyd "ThePhD" Meneide and Shepherd's Oasis, LLC | ||
// Contact: opensource@soasis.org | ||
// | ||
// Commercial License Usage | ||
// Licensees holding valid commercial ztd.text licenses may use this file in | ||
// accordance with the commercial license agreement provided with the | ||
// Software or, alternatively, in accordance with the terms contained in | ||
// a written agreement between you and Shepherd's Oasis, LLC. | ||
// For licensing terms and conditions see your agreement. For | ||
// further information contact opensource@soasis.org. | ||
// | ||
// Apache License Version 2 Usage | ||
// Alternatively, this file may be used under the terms of Apache License | ||
// Version 2.0 (the "License") for non-commercial use; you may not use this | ||
// file except in compliance with the License. You may obtain a copy of the | ||
// License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// ============================================================================> | ||
|
||
#include <ztd/text/tests/basic_unicode_strings.hpp> | ||
|
||
#include <ztd/text/validate_decodable_as.hpp> | ||
#include <ztd/text/encoding.hpp> | ||
#include <ztd/text/is_unicode_encoding.hpp> | ||
|
||
inline namespace ztd_text_tests_basic_compile_time_validate_decodable_as_unicode_default_utf16 { | ||
|
||
template <typename T> | ||
static void delayed() { | ||
static_assert(ztd::text::validate_decodable_as(ztd::tests::u16_unicode_sequence_truth_native_endian)); | ||
} | ||
|
||
void instantiate() { | ||
delayed<void>(); | ||
} | ||
|
||
} // namespace ztd_text_tests_basic_compile_time_validate_decodable_as_unicode_default_utf16 |
48 changes: 48 additions & 0 deletions
48
tests/basic_compile_time/source/validate_decodable_as.unicode.default.utf32.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// ============================================================================= | ||
// | ||
// ztd.text | ||
// Copyright © 2021 JeanHeyd "ThePhD" Meneide and Shepherd's Oasis, LLC | ||
// Contact: opensource@soasis.org | ||
// | ||
// Commercial License Usage | ||
// Licensees holding valid commercial ztd.text licenses may use this file in | ||
// accordance with the commercial license agreement provided with the | ||
// Software or, alternatively, in accordance with the terms contained in | ||
// a written agreement between you and Shepherd's Oasis, LLC. | ||
// For licensing terms and conditions see your agreement. For | ||
// further information contact opensource@soasis.org. | ||
// | ||
// Apache License Version 2 Usage | ||
// Alternatively, this file may be used under the terms of Apache License | ||
// Version 2.0 (the "License") for non-commercial use; you may not use this | ||
// file except in compliance with the License. You may obtain a copy of the | ||
// License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// ============================================================================> | ||
|
||
#include <ztd/text/tests/basic_unicode_strings.hpp> | ||
|
||
#include <ztd/text/validate_decodable_as.hpp> | ||
#include <ztd/text/encoding.hpp> | ||
#include <ztd/text/is_unicode_encoding.hpp> | ||
|
||
inline namespace ztd_text_tests_basic_compile_time_validate_decodable_as_unicode_default_utf32 { | ||
|
||
template <typename T> | ||
static void delayed() { | ||
static_assert(ztd::text::validate_decodable_as(ztd::tests::u32_unicode_sequence_truth_native_endian)); | ||
} | ||
|
||
void instantiate() { | ||
delayed<void>(); | ||
} | ||
|
||
} // namespace ztd_text_tests_basic_compile_time_validate_decodable_as_unicode_default_utf32 |
48 changes: 48 additions & 0 deletions
48
tests/basic_compile_time/source/validate_decodable_as.unicode.default.utf8.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// ============================================================================= | ||
// | ||
// ztd.text | ||
// Copyright © 2021 JeanHeyd "ThePhD" Meneide and Shepherd's Oasis, LLC | ||
// Contact: opensource@soasis.org | ||
// | ||
// Commercial License Usage | ||
// Licensees holding valid commercial ztd.text licenses may use this file in | ||
// accordance with the commercial license agreement provided with the | ||
// Software or, alternatively, in accordance with the terms contained in | ||
// a written agreement between you and Shepherd's Oasis, LLC. | ||
// For licensing terms and conditions see your agreement. For | ||
// further information contact opensource@soasis.org. | ||
// | ||
// Apache License Version 2 Usage | ||
// Alternatively, this file may be used under the terms of Apache License | ||
// Version 2.0 (the "License") for non-commercial use; you may not use this | ||
// file except in compliance with the License. You may obtain a copy of the | ||
// License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// ============================================================================> | ||
|
||
#include <ztd/text/tests/basic_unicode_strings.hpp> | ||
|
||
#include <ztd/text/validate_decodable_as.hpp> | ||
#include <ztd/text/encoding.hpp> | ||
#include <ztd/text/is_unicode_encoding.hpp> | ||
|
||
inline namespace ztd_text_tests_basic_compile_time_validate_decodable_as_unicode_default_utf8 { | ||
|
||
template <typename T> | ||
static void delayed() { | ||
static_assert(ztd::text::validate_decodable_as(ztd::tests::u8_unicode_sequence_truth_native_endian)); | ||
} | ||
|
||
void instantiate() { | ||
delayed<void>(); | ||
} | ||
|
||
} // namespace ztd_text_tests_basic_compile_time_validate_decodable_as_unicode_default_utf8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
tests/basic_compile_time/source/validate_decodable_as.unicode.explicit.utf16.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// ============================================================================= | ||
// | ||
// ztd.text | ||
// Copyright © 2021 JeanHeyd "ThePhD" Meneide and Shepherd's Oasis, LLC | ||
// Contact: opensource@soasis.org | ||
// | ||
// Commercial License Usage | ||
// Licensees holding valid commercial ztd.text licenses may use this file in | ||
// accordance with the commercial license agreement provided with the | ||
// Software or, alternatively, in accordance with the terms contained in | ||
// a written agreement between you and Shepherd's Oasis, LLC. | ||
// For licensing terms and conditions see your agreement. For | ||
// further information contact opensource@soasis.org. | ||
// | ||
// Apache License Version 2 Usage | ||
// Alternatively, this file may be used under the terms of Apache License | ||
// Version 2.0 (the "License") for non-commercial use; you may not use this | ||
// file except in compliance with the License. You may obtain a copy of the | ||
// License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// ============================================================================> | ||
|
||
#include <ztd/text/tests/basic_unicode_strings.hpp> | ||
|
||
#include <ztd/text/validate_decodable_as.hpp> | ||
#include <ztd/text/encoding.hpp> | ||
#include <ztd/text/is_unicode_encoding.hpp> | ||
|
||
inline namespace ztd_text_tests_basic_compile_time_validate_decodable_as_unicode_explicit_utf16 { | ||
|
||
template <typename T> | ||
static void delayed() { | ||
static_assert(ztd::text::validate_decodable_as( | ||
ztd::tests::u16_unicode_sequence_truth_native_endian, ztd::text::utf16)); | ||
} | ||
|
||
void instantiate() { | ||
delayed<void>(); | ||
} | ||
|
||
} // namespace ztd_text_tests_basic_compile_time_validate_decodable_as_unicode_explicit_utf16 |
49 changes: 49 additions & 0 deletions
49
tests/basic_compile_time/source/validate_decodable_as.unicode.explicit.utf32.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// ============================================================================= | ||
// | ||
// ztd.text | ||
// Copyright © 2021 JeanHeyd "ThePhD" Meneide and Shepherd's Oasis, LLC | ||
// Contact: opensource@soasis.org | ||
// | ||
// Commercial License Usage | ||
// Licensees holding valid commercial ztd.text licenses may use this file in | ||
// accordance with the commercial license agreement provided with the | ||
// Software or, alternatively, in accordance with the terms contained in | ||
// a written agreement between you and Shepherd's Oasis, LLC. | ||
// For licensing terms and conditions see your agreement. For | ||
// further information contact opensource@soasis.org. | ||
// | ||
// Apache License Version 2 Usage | ||
// Alternatively, this file may be used under the terms of Apache License | ||
// Version 2.0 (the "License") for non-commercial use; you may not use this | ||
// file except in compliance with the License. You may obtain a copy of the | ||
// License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// ============================================================================> | ||
|
||
#include <ztd/text/tests/basic_unicode_strings.hpp> | ||
|
||
#include <ztd/text/validate_decodable_as.hpp> | ||
#include <ztd/text/encoding.hpp> | ||
#include <ztd/text/is_unicode_encoding.hpp> | ||
|
||
inline namespace ztd_text_tests_basic_compile_time_validate_decodable_as_unicode_explicit_utf32 { | ||
|
||
template <typename T> | ||
static void delayed() { | ||
static_assert(ztd::text::validate_decodable_as( | ||
ztd::tests::u32_unicode_sequence_truth_native_endian, ztd::text::utf32)); | ||
} | ||
|
||
void instantiate() { | ||
delayed<void>(); | ||
} | ||
|
||
} // namespace ztd_text_tests_basic_compile_time_validate_decodable_as_unicode_explicit_utf32 |
49 changes: 49 additions & 0 deletions
49
tests/basic_compile_time/source/validate_decodable_as.unicode.explicit.utf8.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// ============================================================================= | ||
// | ||
// ztd.text | ||
// Copyright © 2021 JeanHeyd "ThePhD" Meneide and Shepherd's Oasis, LLC | ||
// Contact: opensource@soasis.org | ||
// | ||
// Commercial License Usage | ||
// Licensees holding valid commercial ztd.text licenses may use this file in | ||
// accordance with the commercial license agreement provided with the | ||
// Software or, alternatively, in accordance with the terms contained in | ||
// a written agreement between you and Shepherd's Oasis, LLC. | ||
// For licensing terms and conditions see your agreement. For | ||
// further information contact opensource@soasis.org. | ||
// | ||
// Apache License Version 2 Usage | ||
// Alternatively, this file may be used under the terms of Apache License | ||
// Version 2.0 (the "License") for non-commercial use; you may not use this | ||
// file except in compliance with the License. You may obtain a copy of the | ||
// License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// ============================================================================> | ||
|
||
#include <ztd/text/tests/basic_unicode_strings.hpp> | ||
|
||
#include <ztd/text/validate_decodable_as.hpp> | ||
#include <ztd/text/encoding.hpp> | ||
#include <ztd/text/is_unicode_encoding.hpp> | ||
|
||
inline namespace ztd_text_tests_basic_compile_time_validate_decodable_as_unicode_explicit_utf8 { | ||
|
||
template <typename T> | ||
static void delayed() { | ||
static_assert( | ||
ztd::text::validate_decodable_as(ztd::tests::u8_unicode_sequence_truth_native_endian, ztd::text::utf8)); | ||
} | ||
|
||
void instantiate() { | ||
delayed<void>(); | ||
} | ||
|
||
} // namespace ztd_text_tests_basic_compile_time_validate_decodable_as_unicode_explicit_utf8 |