Home » Articles, Knowledge

Unit Testing with Axioms in C++ 2011

18 June 2012 No Comment

This article shows how concepts and axioms can be expressed in standard C++ 2011, and explore Axiom-based testing is a technique for testing generic code in a generic way, based on
algebraic specification. This article explores how you can specify graph transformation-based rules for a classical problem of transforming from UML sequence diagrams to state machines. The specification of the transformation rules is based on the concrete syntax of sequence diagrams and state machines. It introduces tailored transformation support for sequence diagrams and a novel graphical operator to match and transform combined fragments.

Compared to traditional unit testing, axiom-based testing offers a less ad hoc way to specify and test behaviour, and we believe it is particularly well suited to test generic code. Compared to pre- and postconditions, axioms are again more suited for generic code, and allows for specification of relationships that cannot be covered by pre- and postconditions – though axioms are not a replacement for assertions and some forms of pre- and postconditions at the implementation level.

Related Content:

Comments:

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.

*