Explorar o código

Extended tests for Integer class

- added another assignment (copy) call
Patrick %!s(int64=4) %!d(string=hai) anos
pai
achega
6ed6388c6b
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      test/cases/boxing/IntegerTest.cpp

+ 4 - 0
test/cases/boxing/IntegerTest.cpp

@@ -33,6 +33,10 @@ namespace {
 
     x = 44;
     ASSERT_EQ(44, x);
+
+    ls_std::Integer y {3};
+    x = y;
+    ASSERT_EQ(3, x);
   }
 
   // arithmetic operators