From 50ef80a6b329231d4ee226d43eff731ceed0b4ff Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Mon, 23 Sep 2024 11:11:09 -0400 Subject: [PATCH 1/2] Add regression test for unicode in comment lines --- test/integration/good/comments.stan | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/integration/good/comments.stan b/test/integration/good/comments.stan index ce3947a9d2..945c74cc44 100644 --- a/test/integration/good/comments.stan +++ b/test/integration/good/comments.stan @@ -23,3 +23,11 @@ transformed data { array[N/*test1*/ , //test1.5 N/*test2*/] real arr; } + +model { + // unicode in comments + // Љ😃 + /* + λ β ζ π + //*/ +} From c44dddb0dcf3936c3aa3b0372e7662431a82c71b Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Mon, 23 Sep 2024 11:13:15 -0400 Subject: [PATCH 2/2] dune promote --- test/integration/good/pretty.expected | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/integration/good/pretty.expected b/test/integration/good/pretty.expected index b46b537b44..56116088b3 100644 --- a/test/integration/good/pretty.expected +++ b/test/integration/good/pretty.expected @@ -1359,6 +1359,13 @@ transformed data { /* ^^^:test2*/ } +model { + // unicode in comments + // Љ😃 + /* + λ β ζ π + //*/ +} $ ../../../../install/default/bin/stanc --auto-format conditional_condition_good.stan parameters {