@@ -66,6 +66,7 @@ public final class ConformanceTest extends Statement {
6666 .setOptions (OPTIONS )
6767 .addLibraries (
6868 CelExtensions .bindings (),
69+ CelExtensions .comprehensions (),
6970 CelExtensions .encoders (OPTIONS ),
7071 CelExtensions .math (OPTIONS ),
7172 CelExtensions .protos (),
@@ -80,6 +81,7 @@ public final class ConformanceTest extends Statement {
8081 .setOptions (OPTIONS )
8182 .addLibraries (
8283 CelExtensions .bindings (),
84+ CelExtensions .comprehensions (),
8385 CelExtensions .encoders (OPTIONS ),
8486 CelExtensions .math (OPTIONS ),
8587 CelExtensions .protos (),
@@ -106,10 +108,12 @@ private static CelChecker getChecker(SimpleTest test) throws Exception {
106108 .addFileTypes (dev .cel .expr .conformance .proto2 .TestAllTypesExtensions .getDescriptor ())
107109 .addLibraries (
108110 CelExtensions .bindings (),
111+ CelExtensions .comprehensions (),
109112 CelExtensions .encoders (OPTIONS ),
110113 CelExtensions .math (OPTIONS ),
111114 CelExtensions .sets (OPTIONS ),
112115 CelExtensions .strings (),
116+ CelExtensions .comprehensions (),
113117 CelOptionalLibrary .INSTANCE )
114118 .addMessageTypes (dev .cel .expr .conformance .proto2 .TestAllTypes .getDescriptor ())
115119 .addMessageTypes (dev .cel .expr .conformance .proto3 .TestAllTypes .getDescriptor ())
@@ -120,6 +124,7 @@ private static CelChecker getChecker(SimpleTest test) throws Exception {
120124 CelRuntimeFactory .standardCelRuntimeBuilder ()
121125 .setOptions (OPTIONS )
122126 .addLibraries (
127+ CelExtensions .comprehensions (),
123128 CelExtensions .encoders (OPTIONS ),
124129 CelExtensions .math (OPTIONS ),
125130 CelExtensions .sets (OPTIONS ),
@@ -182,6 +187,7 @@ public void evaluate() throws Throwable {
182187 CelValidationResult response = getParser (test ).parse (test .getExpr (), test .getName ());
183188 assertThat (response .hasError ()).isFalse ();
184189 response = getChecker (test ).check (response .getAst ());
190+ System .out .println ("response: " + response .getIssueString ());
185191 assertThat (response .hasError ()).isFalse ();
186192 Type resultType = CelProtoTypes .celTypeToType (response .getAst ().getResultType ());
187193
0 commit comments