Skip to content

Commit

Permalink
Merge pull request #1449 from stan-dev/test/unicode-comments
Browse files Browse the repository at this point in the history
 Add regression test for unicode in comment lines
  • Loading branch information
WardBrian authored Sep 24, 2024
2 parents 7865be8 + c44dddb commit c5721d7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/integration/good/comments.stan
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ transformed data {
array[N/*test1*/ , //test1.5
N/*test2*/] real arr;
}

model {
// unicode in comments
// Љ😃
/*
λ β ζ π
//*/
}
7 changes: 7 additions & 0 deletions test/integration/good/pretty.expected
Original file line number Diff line number Diff line change
Expand Up @@ -1359,6 +1359,13 @@ transformed data {

/* ^^^:test2*/
}
model {
// unicode in comments
// Љ😃
/*
λ β ζ π
//*/
}

$ ../../../../install/default/bin/stanc --auto-format conditional_condition_good.stan
parameters {
Expand Down

0 comments on commit c5721d7

Please sign in to comment.