xiaowanmay / googletest

Automatically exported from code.google.com/p/googletest
0 stars 0 forks source link

TestWithParam<T> should work with ParamGenerator<U> if T is implicitly convertible to U. #308

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
From the user's email 
(http://groups.google.com/group/googletestframework/browse_thread/thread/3260932
808f594a):

On gtest 1.5.0, OS X 10.6.4 with Xcode 3.2.3, LLVM GCC 4.2, 
when we have a class P that inherits public 
::testing::TestWithParam<int64_t> (equivalent to a long long int), and 
we INSTANTIATE_TEST_CASE_P with a 3rd argument of ::testing::Range(), 
the arguments to Range must have ll (ell-ell) appended to them, or 
else I get the following build error: 
error: conversion from 'testing::internal::ParamGenerator<int>' to 
non-scalar type 'testing::internal::ParamGenerator<long long int>' 
requested.

Original issue reported on code.google.com by vladlosev on 29 Aug 2010 at 11:44

GoogleCodeExporter commented 9 years ago

Original comment by w...@google.com on 27 Sep 2010 at 7:27