blob: dc329e372065b3d30234401d0ed90396d1c04b2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <gtest/gtest.h>
#include "backend/String.h"
TEST(StringTest, OperatorEqual) {
String a = "foo";
String b = "foo";
ASSERT_TRUE(a == b);
b = "bar";
ASSERT_FALSE(a == b);
}
TEST(StringTest, OperatorNotEqual) {
String a = "foo";
String b = "foo";
ASSERT_FALSE(a != b);
b = "bar";
ASSERT_TRUE(a != b);
}
|