-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_error.cpp
More file actions
29 lines (21 loc) · 785 Bytes
/
test_error.cpp
File metadata and controls
29 lines (21 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* This file is part of the headcode.space crypt.
*
* The 'LICENSE.txt' file in the project root holds the software license.
* Copyright (C) 2020-2021 headcode.space e.U.
* Oliver Maurhart <info@headcode.space>, https://www.headcode.space
*/
#include <gtest/gtest.h>
#include <headcode/crypt/crypt.hpp>
TEST(Error, text_no_error) {
auto text = headcode::crypt::GetErrorText(headcode::crypt::Error::kNoError);
EXPECT_FALSE(text.empty());
}
TEST(Error, text_invalid_argument) {
auto text = headcode::crypt::GetErrorText(headcode::crypt::Error::kInvalidArgument);
EXPECT_FALSE(text.empty());
}
TEST(Error, text_invalid_operation) {
auto text = headcode::crypt::GetErrorText(headcode::crypt::Error::kInvalidOperation);
EXPECT_FALSE(text.empty());
}