message: Minor formatting and test rewriting
diff: @@ -24,24 +24,23 @@ namespace Example {
  void AllTypes::checkAsserts(void) {
  // Check output from port invocations worked
  -
  + // Declare enum with possible port pass by logic
  + enum output_options {value = 0, pointer = 1, const_ref = 2, reference = 3};
  + // Declare array with expected output for above pass by logic
  // Value arguments result in current state being 0
  - U8 value_expected = 0;
  // Pointer arguments result in current state being 1
  - U8 pointer_expected = 1;
  // Const reference arguments result in current state being 0
  - U8 constref_expected = 0;
  // If reference and sync, state will be 1
  // If reference and async, state will be 0
  - U8 reference_expected = (this->is_async) ? 0 : 1;
  + int expected_output[] = {0, 1, 0, (this->is_async) ? 0 : 1};
  // Check output values
  - ASSERT_EQ(this->arg1, pointer_expected);
  - ASSERT_EQ(this->arg2, reference_expected);
  - ASSERT_EQ(this->arg3, value_expected);
  - ASSERT_EQ((this->arg4).getstate(), pointer_expected);
  - ASSERT_EQ((this->arg5).getstate(), reference_expected);
  - ASSERT_EQ((this->arg6).getstate(), constref_expected);
  + ASSERT_EQ(this->arg1, expected_output[pointer]);
  + ASSERT_EQ(this->arg2, expected_output[reference]);
  + ASSERT_EQ(this->arg3, expected_output[value]);
  + ASSERT_EQ((this->arg4).getstate(), expected_output[pointer]);
  + ASSERT_EQ((this->arg5).getstate(), expected_output[reference]);
  + ASSERT_EQ((this->arg6).getstate(), expected_output[const_ref]);
  }
  }
  