diff --git a/cpp/tests/datetime/datetime_ops_test.cpp b/cpp/tests/datetime/datetime_ops_test.cpp index c0d2d1cc447..9683a35bf81 100644 --- a/cpp/tests/datetime/datetime_ops_test.cpp +++ b/cpp/tests/datetime/datetime_ops_test.cpp @@ -183,10 +183,9 @@ TYPED_TEST(TypedDatetimeOpsTest, TestExtractingGeneratedDatetimeComponents) using namespace cudf::datetime; using namespace cuda::std::chrono; - auto start = milliseconds(-2500000000000); // Sat, 11 Oct 1890 19:33:20 GMT - auto stop_ = milliseconds(2500000000000); // Mon, 22 Mar 2049 04:26:40 GMT - auto timestamps = - generate_timestamps(this->size(), time_point_ms(start), time_point_ms(stop_)); + auto start = milliseconds(-2500000000000); // Sat, 11 Oct 1890 19:33:20 GMT + auto stop = milliseconds(2500000000000); // Mon, 22 Mar 2049 04:26:40 GMT + auto timestamps = generate_timestamps(this->size(), time_point_ms(start), time_point_ms(stop)); auto expected_years = fixed_width_column_wrapper{1890, 1906, 1922, 1938, 1954, 1970, 1985, 2001, 2017, 2033}; @@ -221,9 +220,9 @@ TYPED_TEST(TypedDatetimeOpsTest, TestExtractingGeneratedNullableDatetimeComponen using namespace cuda::std::chrono; auto start = milliseconds(-2500000000000); // Sat, 11 Oct 1890 19:33:20 GMT - auto stop_ = milliseconds(2500000000000); // Mon, 22 Mar 2049 04:26:40 GMT + auto stop = milliseconds(2500000000000); // Mon, 22 Mar 2049 04:26:40 GMT auto timestamps = - generate_timestamps(this->size(), time_point_ms(start), time_point_ms(stop_)); + generate_timestamps(this->size(), time_point_ms(start), time_point_ms(stop)); auto expected_years = fixed_width_column_wrapper{ {1890, 1906, 1922, 1938, 1954, 1970, 1985, 2001, 2017, 2033}, @@ -357,9 +356,9 @@ TYPED_TEST(TypedDatetimeOpsTest, TestCeilDatetime) using namespace cuda::std::chrono; auto start = milliseconds(-2500000000000); // Sat, 11 Oct 1890 19:33:20 GMT - auto stop_ = milliseconds(2500000000000); // Mon, 22 Mar 2049 04:26:40 GMT + auto stop = milliseconds(2500000000000); // Mon, 22 Mar 2049 04:26:40 GMT - auto input = generate_timestamps(this->size(), time_point_ms(start), time_point_ms(stop_)); + auto input = generate_timestamps(this->size(), time_point_ms(start), time_point_ms(stop)); auto host_val = to_host(input); thrust::host_vector timestamps = host_val.first; diff --git a/cpp/tests/wrappers/timestamps_test.cu b/cpp/tests/wrappers/timestamps_test.cu index b458f34cca8..097b786aefe 100644 --- a/cpp/tests/wrappers/timestamps_test.cu +++ b/cpp/tests/wrappers/timestamps_test.cu @@ -78,10 +78,9 @@ TYPED_TEST(ChronoColumnTest, ChronoDurationsMatchPrimitiveRepresentation) using namespace cudf::test; using namespace cuda::std::chrono; - auto start = milliseconds(-2500000000000); // Sat, 11 Oct 1890 19:33:20 GMT - auto stop_ = milliseconds(2500000000000); // Mon, 22 Mar 2049 04:26:40 GMT - auto chrono_col = - generate_timestamps(this->size(), time_point_ms(start), time_point_ms(stop_)); + auto start = milliseconds(-2500000000000); // Sat, 11 Oct 1890 19:33:20 GMT + auto stop = milliseconds(2500000000000); // Mon, 22 Mar 2049 04:26:40 GMT + auto chrono_col = generate_timestamps(this->size(), time_point_ms(start), time_point_ms(stop)); // round-trip through the host to copy `chrono_col` values // to a new fixed_width_column_wrapper `primitive_col` @@ -135,14 +134,14 @@ TYPED_TEST(ChronoColumnTest, ChronosCanBeComparedInDeviceCode) auto start_lhs = milliseconds(-2500000000000); // Sat, 11 Oct 1890 19:33:20 GMT auto start_rhs = milliseconds(-2400000000000); // Tue, 12 Dec 1893 05:20:00 GMT - auto stop_lhs_ = milliseconds(2500000000000); // Mon, 22 Mar 2049 04:26:40 GMT - auto stop_rhs_ = milliseconds(2600000000000); // Wed, 22 May 2052 14:13:20 GMT + auto stop_lhs = milliseconds(2500000000000); // Mon, 22 Mar 2049 04:26:40 GMT + auto stop_rhs = milliseconds(2600000000000); // Wed, 22 May 2052 14:13:20 GMT auto chrono_lhs_col = - generate_timestamps(this->size(), time_point_ms(start_lhs), time_point_ms(stop_lhs_)); + generate_timestamps(this->size(), time_point_ms(start_lhs), time_point_ms(stop_lhs)); auto chrono_rhs_col = - generate_timestamps(this->size(), time_point_ms(start_rhs), time_point_ms(stop_rhs_)); + generate_timestamps(this->size(), time_point_ms(start_rhs), time_point_ms(stop_rhs)); rmm::device_uvector indices(this->size(), rmm::cuda_stream_default); thrust::sequence(rmm::exec_policy(), indices.begin(), indices.end());