瀏覽代碼

Extended tests for Integer class

- added another assignment (copy) call
Patrick 4 年之前
父節點
當前提交
6ed6388c6b
共有 1 個文件被更改,包括 4 次插入0 次删除
  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