stan-dev / stanc3

The Stan transpiler (from Stan to C++ and beyond).
BSD 3-Clause "New" or "Revised" License
142 stars 46 forks source link

fix --debug-generate-data for ordered and positive_ordered data types #1173

Closed nhuurre closed 2 years ago

nhuurre commented 2 years ago

Submission Checklist

Create proper ordered data in --debug-generate-data; before the values were reverse-ordered. Also turns out numbers like 1. are not valid JSON, it needs to be 1.0.

Release notes

Fix --debug-generate-data for ordered vector data types

Copyright and Licensing

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)