diff --git a/tests/sao.js b/tests/sao.js index 193d51b78e..20e1e59820 100644 --- a/tests/sao.js +++ b/tests/sao.js @@ -735,6 +735,11 @@ QUnit.strictEqual(new Sao.PYSON.Decoder().decode(eval_), true, "decode(In('foo', {foo: 'bar'}))"); + eval_ = new Sao.PYSON.Encoder().encode( + new Sao.PYSON.In(new Sao.PYSON.Eval('test', 'foo'), {foo: 'bar'})); + QUnit.strictEqual(new Sao.PYSON.Decoder().decode(eval_), true, + "decode(In(Eval('test', 'foo'), {foo: 'bar'}))"); + eval_ = new Sao.PYSON.Encoder().encode( new Sao.PYSON.In('1', {1: 'bar'})); QUnit.strictEqual(new Sao.PYSON.Decoder().decode(eval_), true, @@ -745,6 +750,11 @@ QUnit.strictEqual(new Sao.PYSON.Decoder().decode(eval_), false, "decode(In('test', {foo: 'bar'}))"); + eval_ = new Sao.PYSON.Encoder().encode( + new Sao.PYSON.In(new Sao.PYSON.Eval('foo', 'test'), {foo: 'bar'})); + QUnit.strictEqual(new Sao.PYSON.Decoder().decode(eval_), false, + "decode(In(Eval('foo', 'test'), {foo: 'bar'}))"); + eval_ = new Sao.PYSON.Encoder().encode( new Sao.PYSON.In('foo', ['foo'])); QUnit.strictEqual(new Sao.PYSON.Decoder().decode(eval_), true,