From: Markus S. <mar...@gm...> - 2006-06-26 22:03:56
|
For my fix of j5211, the Universal time scale off-by-2-days bug, I wrote a little bit of C++.Net code to generate test data that I paste into the ICU test suites. I had planned to check this C++.Net code into CVS somewhere under source/test/ but the code turned out to be quite trivial. Is it sufficient if I write something like /* * This data was generated by C++.Net code like * Console::WriteLine(L" {{ {0}, 1, 1, INT64_C({1}) }},", year, DateTime(year, 1, 1).Ticks); * with the DateTime constructor taking int values for year, month, and date. */ or would you prefer if I checked in the complete C++.Net project (.sln, .vcproj, .cpp, and about 6 other files from the standard C++.Net project)? If you want the code but not the whole C++ template stuff, I could just check in the .cpp and someone could recreate the project pretty easily if necessary. It just seems like it's so simple that the test suite comment above would cover it. Opinions? This is what the data looks like - very simple: static const DotNetDateTimeTicks dotNetDateTimeTicks[]={ /* year, month, day, ticks */ { 100, 1, 1, INT64_C(31241376000000000) }, { 100, 3, 1, INT64_C(31292352000000000) }, { 200, 1, 1, INT64_C(62798112000000000) }, ... { 1970, 1, 1, INT64_C(621355968000000000) }, { 2001, 1, 1, INT64_C(631139040000000000) }, { 9900, 3, 1, INT64_C(3123873216000000000) }, { 9999, 12, 31, INT64_C(3155378112000000000) } }; markus |