changeset e3d683dfad46 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=e3d683dfad46
description:
Returns an Array with the statements for PYSON string of And/Or
issue9722
review300711002
diffstat:
src/pyson.js | 2 +-
tests/sao.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 88a6e5db8b62 -r e3d683dfad46 src/pyson.js
--- a/src/pyson.js Wed Oct 21 23:13:32 2020 +0200
+++ b/src/pyson.js Wed Oct 21 23:15:18 2020 +0200
@@ -297,7 +297,7 @@
return ['boolean'];
},
__string_params__: function() {
- return this._statements;
+ return [this._statements];
}
});
diff -r 88a6e5db8b62 -r e3d683dfad46 tests/sao.js
--- a/tests/sao.js Wed Oct 21 23:13:32 2020 +0200
+++ b/tests/sao.js Wed Oct 21 23:15:18 2020 +0200
@@ -253,7 +253,7 @@
QUnit.strictEqual(new Sao.PYSON.Decoder().decode(eval_), false,
'decode(And([false, false, true]))');
QUnit.strictEqual(new Sao.PYSON.And([false, true, true]).toString(),
- "And(false, true, true)");
+ "And([false, true, true])");
});
QUnit.test('PYSON Or', function() {
@@ -321,7 +321,7 @@
QUnit.strictEqual(new Sao.PYSON.Decoder().decode(eval_), true,
'decode(Or([false, false, true]))');
QUnit.strictEqual(new Sao.PYSON.Or([false, true, true]).toString(),
- "Or(false, true, true)");
+ "Or([false, true, true])");
});
QUnit.test('PYSON Equal', function() {