cginternals / libzeug

deprecated: C++ sanctuary for small but powerful and frequently required, stand alone features.
MIT License
16 stars 13 forks source link

Property Instanciation Tests #129

Closed lanice closed 9 years ago

lanice commented 9 years ago

This adds compile-time instanciation tests for the Property and PropertyArray class. This helps to detect bugs in the template code, which only come up if instanciated. Those tests are generated by a python script (also added by this pull request).

Tests for the following datatypes are added/can be generated: bool, float, double, int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t

cgcostume commented 9 years ago

are these tests generated? or created by hand - is the set of tests complete or does it require updates when reflectionzeug somehow changes?

sbusch42 commented 9 years ago

From the description: "Those tests are generated by a python script (also added by this pull request).". The generation can be triggered by a build target.

lanice commented 9 years ago

When reflectionzeug changes, then the script can be adjusted and the tests generated/updated again.

As a note, and like I said in the description, these are exclusively instanciation tests that basically "pass" already if they compile. Functionality tests will follow soon.