Sha256: f2073b808f4cc2d918612ff1c910fbc4a8ead998b12fcbc7608d430fe71d8eb9

Contents?: true

Size: 1.01 KB

Versions: 27

Compression:

Stored size: 1.01 KB

Contents

---
#The purpose of this test is to pull in some standard library stuff from C99
:cmock:
  :includes:
    - "<stdint.h>"
    - "<limits.h>"

:systest:
  :types: |
    #include <stdint.h>
    #include <limits.h>
  
  
  :mockable: |
    int32_t foo(int32_t a);

  :source: 
    :header: |    
      int8_t function_a(void);

    :code: |
      int8_t function_a(void) {
        return (int8_t)(INT_MIN == foo(INT_MAX));
      }
      
  :tests:
    :common: |
      void setUp(void) {}
      void tearDown(void) {}
      
    :units:
    - :pass: TRUE
      :should: 'handle handle a simple comparison of C99 types which pass'
      :code: |
        test()
        {
          foo_ExpectAndReturn(INT_MAX, INT_MIN);
          
          TEST_ASSERT_TRUE(function_a());
        }

    - :pass: FALSE
      :should: 'handle handle a simple comparison of C99 types which fail'
      :code: |
        test()
        {
          foo_ExpectAndReturn(INT_MIN, INT_MIN);
          
          TEST_ASSERT_TRUE(function_a());
        }
        
...

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ceedling-0.31.1 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.31.0 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.30.0 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.28.3 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.28.2 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.28.1 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.27.0 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.25.0 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.24.0 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.22.0 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.21.0 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.20.3 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.20.2 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.19.0 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.18.0 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.17.0 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.16.0 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.15.6 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.15.5 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml
ceedling-0.15.4 vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml