stdex Additional custom or not Standard C++ covered algorithms

Loading...
Searching...
No Matches
pch.hpp
1/*
2 SPDX-License-Identifier: MIT
3 Copyright © 2023-2024 Amebis
4*/
5
6#pragma once
7
8#include <stdex/assert.hpp>
9#include <stdex/base64.hpp>
10#include <stdex/compat.hpp>
11#include <stdex/exception.hpp>
12#include <stdex/hash.hpp>
13#include <stdex/hex.hpp>
14#include <stdex/html.hpp>
15#include <stdex/idrec.hpp>
16#include <stdex/interval.hpp>
17#include <stdex/langid.hpp>
18#include <stdex/locale.hpp>
19#include <stdex/mapping.hpp>
20#include <stdex/math.hpp>
21#include <stdex/memory.hpp>
22#include <stdex/minisign.hpp>
23#include <stdex/parser.hpp>
24#include <stdex/pool.hpp>
25#include <stdex/progress.hpp>
26#include <stdex/ring.hpp>
27#include <stdex/scoped_executor.hpp>
28#include <stdex/sgml.hpp>
29#include <stdex/socket.hpp>
30#include <stdex/spinlock.hpp>
31#include <stdex/stream.hpp>
32#include <stdex/string.hpp>
33#include <stdex/sys_info.hpp>
34#include <stdex/system.hpp>
35#include <stdex/unicode.hpp>
36#include <stdex/vector_queue.hpp>
37#include <stdex/watchdog.hpp>
38#include <stdex/wav.hpp>
39#include <stdex/zlib.hpp>
40
41#include "compat.hpp"
42
43#include <cstdlib>
44#include <filesystem>
45#include <list>
46#include <thread>
47
48 namespace UnitTests
49{
50 TEST_CLASS(hash)
51 {
52 public:
53 TEST_METHOD(crc32);
54 TEST_METHOD(md5);
55 TEST_METHOD(sha1);
56 };
57
58 TEST_CLASS(langid)
59 {
60 public:
61 TEST_METHOD(from_rfc1766);
62 };
63
64 TEST_CLASS(math)
65 {
66 public:
67 TEST_METHOD(mul);
68 TEST_METHOD(add);
69 };
70
71 TEST_CLASS(parser)
72 {
73 public:
74 TEST_METHOD(wtest);
75 TEST_METHOD(sgml_test);
76 TEST_METHOD(http_test);
77 };
78
79 TEST_CLASS(pool)
80 {
81 public:
82 TEST_METHOD(test);
83 };
84
85 TEST_CLASS(ring)
86 {
87 public:
88 TEST_METHOD(test);
89 };
90
91 TEST_CLASS(sgml)
92 {
93 public:
94 TEST_METHOD(sgml2str);
95 TEST_METHOD(str2sgml);
96 };
97
98 TEST_CLASS(stream)
99 {
100 public:
101 TEST_METHOD(async);
102 TEST_METHOD(replicator);
103 TEST_METHOD(open_close);
104 TEST_METHOD(file_stat);
105 };
106
107 TEST_CLASS(string)
108 {
109 public:
110 TEST_METHOD(strncpy);
111 TEST_METHOD(sprintf);
112 };
113
114 TEST_CLASS(unicode)
115 {
116 public:
117 TEST_METHOD(str2wstr);
118 TEST_METHOD(wstr2str);
119 TEST_METHOD(charset_encoder);
120 TEST_METHOD(normalize);
121 };
122
123 TEST_CLASS(watchdog)
124 {
125 public:
126 TEST_METHOD(test);
127 };
128
129 TEST_CLASS(zlib)
130 {
131 public:
132 TEST_METHOD(test);
133 };
134}