mirror of
https://github.com/nasa/fprime.git
synced 2026-04-12 05:19:03 -05:00
* Add enum tests for FPP autocoder * Filter ai_xml sources against generated sources * Revise enum tests for FPP autocoder * Add test utils for FPP autocoder * Add array tests for FPP autocoder * Refactor FppTest * Add .gitignore * Revise enum tests for FPP autocoder * Revise array tests for FPP autocoder * Add string tests for FPP autocoder * Small changes to FPP autocoder tests * Add struct tests for FPP autocoder * Revise enum tests for FPP autocoder * Update ActiveLogger and Health components for new enum deserialize() behavior * Make string test suite type-parametrized * Update READMEs for FppTest * Register FppTest as a deployment and add README * Remove quotes from GENERATED_SOURCES * Begin transition to type-parametrized tests * Transition to type-parametrized tests * Small changes to FPP autocoder tests * Small fix to FPP autocoder tests * Update fprime-fpp version * Update expected words for spell checker * Small fix * Update fprime-fpp version * Add file headers * Update expected words for spell checker * Update fprime-fpp version * Update fprime-fpp version
32 lines
579 B
Fortran
32 lines
579 B
Fortran
enum StructEnum { A, B, C }
|
|
array StructArray = [3] U32
|
|
|
|
struct Primitive {
|
|
mBool: bool
|
|
mU32: U32
|
|
mI16: I16
|
|
mF64: F64
|
|
}
|
|
|
|
struct NonPrimitive {
|
|
mString: string
|
|
mEnum: StructEnum
|
|
mArray: StructArray
|
|
mStruct: Primitive
|
|
mU32Arr: [3] U32
|
|
mStructArr: [3] Primitive
|
|
} default {
|
|
mEnum = StructEnum.C
|
|
mStruct = { mBool = true, mF64 = 3.14 }
|
|
mStructArr = { mBool = true, mF64 = 1.16 }
|
|
}
|
|
|
|
struct MultiString {
|
|
mStr_1: string
|
|
mStr_2: string
|
|
mStr50_1: string size 50
|
|
mStr50_2: string size 50
|
|
mStrArr_1: [3] string size 60
|
|
mStrArr_2: [3] string size 60
|
|
}
|