|
@@ -3,7 +3,7 @@
|
|
|
* Company: Lynar Studios
|
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
|
* Created: 2020-08-09
|
|
|
- * Changed: 2023-03-25
|
|
|
+ * Changed: 2023-05-17
|
|
|
*
|
|
|
* */
|
|
|
|
|
@@ -362,50 +362,6 @@ namespace
|
|
|
ASSERT_TRUE(!x);
|
|
|
}
|
|
|
|
|
|
- TEST_F(IntegerTest, operator_and_with_reference)
|
|
|
- {
|
|
|
- Integer x{1};
|
|
|
- Integer y{1};
|
|
|
-
|
|
|
- ASSERT_TRUE(x && y);
|
|
|
- }
|
|
|
-
|
|
|
- TEST_F(IntegerTest, operator_and_with_value)
|
|
|
- {
|
|
|
- Integer x{1};
|
|
|
- ASSERT_TRUE(x && 1);
|
|
|
- }
|
|
|
-
|
|
|
- TEST_F(IntegerTest, operator_and_with_boolean)
|
|
|
- {
|
|
|
- Integer x{1};
|
|
|
- ASSERT_TRUE(x && true);
|
|
|
- }
|
|
|
-
|
|
|
- TEST_F(IntegerTest, operator_or_with_reference)
|
|
|
- {
|
|
|
- Integer x{};
|
|
|
- Integer y{1};
|
|
|
-
|
|
|
- ASSERT_TRUE(x || y);
|
|
|
- }
|
|
|
-
|
|
|
- TEST_F(IntegerTest, operator_or_with_value)
|
|
|
- {
|
|
|
- Integer x{};
|
|
|
- bool orWithValue = x || 1;
|
|
|
-
|
|
|
- ASSERT_TRUE(orWithValue);
|
|
|
- }
|
|
|
-
|
|
|
- TEST_F(IntegerTest, operator_or_with_boolean)
|
|
|
- {
|
|
|
- Integer x{};
|
|
|
- bool orWithBoolean = x || true;
|
|
|
-
|
|
|
- ASSERT_TRUE(orWithBoolean);
|
|
|
- }
|
|
|
-
|
|
|
// increment / decrement operator
|
|
|
|
|
|
TEST_F(IntegerTest, operator_increment)
|