     thrust::sort(H.begin(), H.end());
     thrust::sort(D.begin(), D.end());
 
-    EXPECT_EQ(H, D);
+
+    thrust::host_vector<int> H2 = D;
+    EXPECT_EQ(H, H2);
 }
 
 


    thrust::host_vector<int> H2 = D;

    EXPECT_EQ(H, D);
    EXPECT_EQ(H, H2);

    H[2] = 1924;
    EXPECT_NE(H, D);


    D[2] = 1924;
    EXPECT_EQ(H, D);
}

TEST(CudaThrust, Sort)

    thrust::sort(H.begin(), H.end());
    thrust::sort(D.begin(), D.end());

    thrust::host_vector<MySortStruct> H2 = D;
    EXPECT_EQ(H, H2);
}

TEST(CudaThrust, Maximum)
