mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
[printf] Test empty format string, and empty arg string (#2018)
Issue: #1058
This commit is contained in:
@@ -714,6 +714,12 @@ testCase testCaseChar = {
|
|||||||
|
|
||||||
std::vector<printDataGenParameters> printStringGenParameters = {
|
std::vector<printDataGenParameters> printStringGenParameters = {
|
||||||
|
|
||||||
|
// empty format
|
||||||
|
{ {""}, "\"foo\"" },
|
||||||
|
|
||||||
|
// empty argument
|
||||||
|
{ {"%s"}, "\"\"" },
|
||||||
|
|
||||||
//(Minimum)Four-wide,zero-filled,default(right)-justified
|
//(Minimum)Four-wide,zero-filled,default(right)-justified
|
||||||
|
|
||||||
{ { "%4s" }, "\"foo\"" },
|
{ { "%4s" }, "\"foo\"" },
|
||||||
@@ -766,6 +772,10 @@ std::vector<printDataGenParameters> printStringGenParameters = {
|
|||||||
|
|
||||||
std::vector<std::string> correctBufferString = {
|
std::vector<std::string> correctBufferString = {
|
||||||
|
|
||||||
|
"",
|
||||||
|
|
||||||
|
"",
|
||||||
|
|
||||||
" foo",
|
" foo",
|
||||||
|
|
||||||
"f",
|
"f",
|
||||||
|
|||||||
Reference in New Issue
Block a user