diff --git a/solr/core/src/test/org/apache/solr/search/QueryEqualityTest.java b/solr/core/src/test/org/apache/solr/search/QueryEqualityTest.java index 626999910eb..d1f5e0fc767 100644 --- a/solr/core/src/test/org/apache/solr/search/QueryEqualityTest.java +++ b/solr/core/src/test/org/apache/solr/search/QueryEqualityTest.java @@ -744,6 +744,17 @@ public class QueryEqualityTest extends SolrTestCaseJ4 { doAssertParserCoverage = true; } + public void testQuerySimple() throws Exception { + SolrQueryRequest req = req("myField","foo_s"); + try { + assertQueryEquals("simple", req, + "{!simple f=$myField}asdf", + "{!simple f=$myField v=asdf}", + "{!simple f=foo_s}asdf"); + } finally { + req.close(); + } + } /** * NOTE: defType is not only used to pick the parser, but also to record