nasa / fpp

F Prime Prime: A modeling language for F Prime
https://fprime.jpl.nasa.gov
Apache License 2.0
49 stars 31 forks source link

Add a unit test for duplicate JSON dictionary files #404

Closed bocchino closed 4 months ago

bocchino commented 6 months ago

In the unit tests for fpp-to-dict, we should have a test for duplicate JSON files with the same name, similar to the test we have for fpp-to-cpp. See, e.g., here:

https://github.com/fprime-community/fpp/blob/main/compiler/tools/fpp-to-cpp/test/enum/duplicate.fpp https://github.com/fprime-community/fpp/blob/main/compiler/tools/fpp-to-cpp/test/enum/duplicate.ref.txt

I see the code for checking this error in the JSON output, but there is no unit test.