From 654e41202a58df8d55cd2a50d515e6ef72748cfc Mon Sep 17 00:00:00 2001 From: Shaobo He Date: Wed, 20 Nov 2024 10:42:10 -0800 Subject: [PATCH] updates Signed-off-by: Shaobo He --- cedar-policy-core/src/parser/text_to_cst.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cedar-policy-core/src/parser/text_to_cst.rs b/cedar-policy-core/src/parser/text_to_cst.rs index fbd0c887e..684d97484 100644 --- a/cedar-policy-core/src/parser/text_to_cst.rs +++ b/cedar-policy-core/src/parser/text_to_cst.rs @@ -1263,5 +1263,13 @@ mod tests { }; "#, ); + assert_parse_succeeds( + parse_policy, + r#" + permit(principal, action, resource) when { + principal has if.then.else.in.like.has.is.__cedar + }; + "#, + ); } }