Skip to content

Commit

Permalink
Create directly copy/pastable test message
Browse files Browse the repository at this point in the history
For easier debugging
  • Loading branch information
lizmat committed Apr 19, 2019
1 parent 53953b2 commit 6357b3c
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions S32-str/sprintf-b.t
Expand Up @@ -200,9 +200,9 @@ for @info -> $format, @tests {

for @tests {
is-deeply sprintf($format, |.value), .key,
"sprintf('$format',{.value}) eq '{.key}'";
qq/sprintf("$format",{.value.list.join(",")}) eq '{.key}'/;
is-deeply sprintf($format.uc, |.value), .key.uc,
"sprintf('{$format.uc}',{.value}) eq '{.key.uc}'";
qq/sprintf("{$format.uc}",{.value.list.join(",")}) eq '{.key.uc}'/;
}
}, "Tested '$format'";
}
Expand Down
2 changes: 1 addition & 1 deletion S32-str/sprintf-c.t
Expand Up @@ -69,7 +69,7 @@ for @info -> $format, @tests {
plan +@tests;

is-deeply sprintf($format, |.value), .key,
"sprintf('$format',{.value}) eq '{.key}'"
qq/sprintf("$format",{.value.list.join(",")}) eq '{.key}'/
for @tests;

}, "Tested '$format'";
Expand Down
2 changes: 1 addition & 1 deletion S32-str/sprintf-d.t
Expand Up @@ -235,7 +235,7 @@ for @info -> $format, @tests {
plan +@tests;

is-deeply sprintf($format, |.value), .key,
"sprintf('$format',{.value}) eq '{.key}'"
qq/sprintf("$format",{.value.list.join(",")}) eq '{.key}'/
for @tests;
}, "Tested '$format'";
}
Expand Down
4 changes: 2 additions & 2 deletions S32-str/sprintf-e.t
Expand Up @@ -124,9 +124,9 @@ for @info -> $format, @tests {

for @tests {
is-deeply sprintf($format, |.value), .key,
"sprintf('$format',{.value}) eq '{.key}'";
qq/sprintf("$format",{.value.list.join(",")}) eq '{.key}'/;
is-deeply sprintf($format.uc, |.value), .key.uc,
"sprintf('$format.uc()',{.value}) eq '{.key.uc}'";
qq/sprintf("{$format.uc}",{.value.list.join(",")}) eq '{.key.uc}'/;
}
}, "Tested '$format'";
}
Expand Down
4 changes: 2 additions & 2 deletions S32-str/sprintf-f.t
Expand Up @@ -125,9 +125,9 @@ for @info -> $format, @tests {

for @tests {
is-deeply sprintf($format, |.value), .key,
"sprintf('$format',{.value}) eq '{.key}'";
qq/sprintf("$format",{.value.list.join(",")}) eq '{.key}'/;
is-deeply sprintf($format.uc, |.value), .key.uc,
"sprintf('{$format.uc}',{.value}) eq '{.key.uc}'";
qq/sprintf("{$format.uc}",{.value.list.join(",")}) eq '{.key.uc}'/;
}
}, "Tested '$format'";
}
Expand Down
2 changes: 1 addition & 1 deletion S32-str/sprintf-o.t
Expand Up @@ -205,7 +205,7 @@ for @info -> $format, @tests {
plan +@tests;

is-deeply sprintf($format, |.value), .key,
"sprintf('$format',{.value}0) eq '{.key}'"
qq/sprintf("$format",{.value.list.join(",")}) eq '{.key}'/
for @tests;
}, "Tested '$format'";
}
Expand Down
2 changes: 1 addition & 1 deletion S32-str/sprintf-s.t
Expand Up @@ -123,7 +123,7 @@ for @info -> $format, @tests {
plan +@tests;

is-deeply sprintf($format, |.value), .key,
"sprintf('$format',{.value}) eq '{.key}'"
qq/sprintf("$format",{.value.list.join(",")}) eq '{.key}'/
for @tests;
}, "Tested '$format'";
}
Expand Down
2 changes: 1 addition & 1 deletion S32-str/sprintf-u.t
Expand Up @@ -86,7 +86,7 @@ for @info -> $format, @tests {
plan +@tests;

is-deeply sprintf($format, |.value), .key,
"sprintf('$format',{.value}) eq '{.key}'"
qq/sprintf("$format",{.value.list.join(",")}) eq '{.key}'/
for @tests;
}, "Tested '$format'";
}
Expand Down
4 changes: 2 additions & 2 deletions S32-str/sprintf-x.t
Expand Up @@ -206,9 +206,9 @@ for @info -> $format, @tests {

for @tests {
is-deeply sprintf($format, |.value), .key,
"sprintf('$format',{.value}) eq '{.key}'";
qq/sprintf("$format",{.value.list.join(",")}) eq '{.key}'/;
is-deeply sprintf($format.uc, |.value), .key.uc,
"sprintf('{$format.uc}',{.value}) eq '{.key.uc}'";
qq/sprintf("{$format.uc}",{.value.list.join(",")}) eq '{.key.uc}'/;
}
}, "Tested '$format'";
}
Expand Down

0 comments on commit 6357b3c

Please sign in to comment.