Skip to content

Commit

Permalink
Fix testbenches
Browse files Browse the repository at this point in the history
  • Loading branch information
Grifs committed Feb 12, 2024
1 parent 983ac62 commit 858dc76
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/test/resources/test_languages/csharp/script.csx
Original file line number Diff line number Diff line change
Expand Up @@ -76,30 +76,30 @@ try
else if (array is bool[])
{
var array2 = (array as bool[]).Select(x => x.ToString().ToLower());
Output($"{p.Name}: |{string.Join(":", array2)}|");
Output($"{p.Name}: |{string.Join(";", array2)}|");
}
else if (array is System.Int32[])
{
var array2 = array as System.Int32[];
Output($"{p.Name}: |{string.Join(":", array2)}|");
Output($"{p.Name}: |{string.Join(";", array2)}|");
}
else if (array is System.Int64[])
{
var array2 = array as System.Int64[];
Output($"{p.Name}: |{string.Join(":", array2)}|");
Output($"{p.Name}: |{string.Join(";", array2)}|");
}
else if (array is System.Double[])
{
var array2 = array as System.Double[];
Output($"{p.Name}: |{string.Join(":", array2)}|");
Output($"{p.Name}: |{string.Join(";", array2)}|");
}
else if (array is System.String[])
{
var array2 = array as System.String[];
Output($"{p.Name}: |{string.Join(":", array2)}|");
Output($"{p.Name}: |{string.Join(";", array2)}|");
}
else {
Output($"{p.Name}: |{string.Join(":", array)}|");
Output($"{p.Name}: |{string.Join(";", array)}|");
}
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/test_languages/js/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ for (const key in par) {
if (Array.isArray(par[key]) && par[key].length == 0)
outFun(`${key}: |empty array|`)
else if (Array.isArray(par[key]))
outFun(`${key}: |${par[key].join(':')}|`)
outFun(`${key}: |${par[key].join(';')}|`)
else if (par[key] == undefined)
outFun(`${key}: ||`)
else
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/test_languages/python/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def echo(s):
value2 = map(lambda v: str(v).lower(), value)
else:
value2 = map(lambda v: str(v), value)
echo(f"{key}: |{':'.join(value2)}|")
echo(f"{key}: |{';'.join(value2)}|")
elif value is None:
echo(f"{key}: ||")
elif isinstance(value, bool):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function output {
echo "$@" >> $par_output

if [ ! -z "$par_output_pos" ]; then
IFS=":"
IFS=";"
for var in $par_output_pos; do
unset IFS
echo "$@" >> $var
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/testnextflowvdsl3/src/step1/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[ -f "$par_output" ] && rm "$par_output"

if [ ! -z "$par_input" ]; then
IFS=":"
IFS=";"
for var in $par_input; do
unset IFS
cat "$var" >> "$par_output"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/testnextflowvdsl3/src/step3/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ trap clean_up EXIT


if [ ! -z "$par_input" ]; then
IFS=":"
IFS=";"
for var in $par_input; do
unset IFS
cat "$var" >> "$tmpfile"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class StringArgumentTest extends AnyFunSuite with BeforeAndAfterAll {
assert(arg.choices == Nil)
assert(arg.direction == Input)
assert(!arg.multiple)
assert(arg.multiple_sep == ":")
assert(arg.multiple_sep == ";")
assert(arg.dest == "par")

val argParsed = arg.asJson.as[StringArgument].fold(throw _, a => a)
Expand Down

0 comments on commit 858dc76

Please sign in to comment.