diff options
author | Johannes Rudolph <johannes_rudolph@gmx.de> | 2012-05-31 15:16:47 +0200 |
---|---|---|
committer | Johannes Rudolph <johannes_rudolph@gmx.de> | 2012-05-31 15:16:47 +0200 |
commit | 440a7519ceee9865e77ed8c7544f46ff04134b1d (patch) | |
tree | f22cc4e1f8e51cd9a9beb92b231ff912e344109b /src/test/scala | |
parent | e06661e549316c3c61c71a7668853d8d71933ee8 (diff) | |
download | spray-json-440a7519ceee9865e77ed8c7544f46ff04134b1d.tar.gz spray-json-440a7519ceee9865e77ed8c7544f46ff04134b1d.tar.bz2 spray-json-440a7519ceee9865e77ed8c7544f46ff04134b1d.zip |
implement Gt, make a distinction between possibly Seq-valued Expr and scalar SimpleExpr, use JsValue for constants
Diffstat (limited to 'src/test/scala')
-rw-r--r-- | src/test/scala/cc/spray/json/JsonPathSpecs.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/cc/spray/json/JsonPathSpecs.scala b/src/test/scala/cc/spray/json/JsonPathSpecs.scala index 2ea495e..caef67e 100644 --- a/src/test/scala/cc/spray/json/JsonPathSpecs.scala +++ b/src/test/scala/cc/spray/json/JsonPathSpecs.scala @@ -24,10 +24,10 @@ class JsonPathSpecs extends Specification { } "by predicate" in { "eq" in { - parse("$[?(@.id == 'test')]") must be_==(Selection(Root, ByPredicate(Eq(PathExpr(Selection(Root, ByField("id"))), Constant("test"))))) + parse("$[?(@.id == 'test')]") must be_==(Selection(Root, ByPredicate(Eq(PathExpr(Selection(Root, ByField("id"))), Constant(JsString("test")))))) } "lt" in { - parse("$[?(@.id < 12)]") must be_==(Selection(Root, ByPredicate(Lt(PathExpr(Selection(Root, ByField("id"))), Constant(12))))) + parse("$[?(@.id < 12)]") must be_==(Selection(Root, ByPredicate(Lt(PathExpr(Selection(Root, ByField("id"))), Constant(JsNumber(12)))))) } "exists" in { parse("$[?(@.id)]") must be_==(Selection(Root, ByPredicate(Exists(Selection(Root, ByField("id")))))) |