Skip to content

Commit 4a7d873

Browse files
author
Anton Khodak
committed
Fix failing tests
1 parent e00a60f commit 4a7d873

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cwltool/expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def interpolate(scan, rootvars,
185185
e = evaluator(scan[w[0] + 1:w[1]], jslib, rootvars, fullJS=fullJS,
186186
timeout=timeout, force_docker_pull=force_docker_pull,
187187
debug=debug, js_console=js_console)
188-
if w[0] == 0 and w[1] == len(scan) and len(parts) < 1:
188+
if w[0] == 0 and w[1] == len(scan) and len(parts) <= 1:
189189
return e
190190
leaf = json.dumps(e, sort_keys=True)
191191
if leaf[0] == '"':

tests/test_js_sandbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ class TestValueFrom(unittest.TestCase):
4545
def test_value_from_two_concatenated_expressions(self):
4646
f = cwltool.factory.Factory()
4747
echo = f.make(get_data("tests/wf/vf-concat.cwl"))
48-
self.assertEqual(echo(), {u"out": u"a sting\\n"})
48+
self.assertEqual(echo(), {u"out": u"a sting\n"})

0 commit comments

Comments
 (0)