/trunk/Examples/test-suite/d/special_variable_macros_runme.2.d
D | 21 lines | 17 code | 4 blank | 0 comment | 7 complexity | 6e9730fa71f06d10af0f0c6a3c15d515 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- module special_variable_macros_runme;
- import std.exception;
- import special_variable_macros.special_variable_macros;
- import special_variable_macros.Name;
- import special_variable_macros.NewName;
- import special_variable_macros.PairIntBool;
- void main() {
- auto name = new Name();
- enforce(testFred(name) == "none");
- enforce(testJack(name) == "$specialname");
- enforce(testJill(name) == "jilly");
- enforce(testMary(name) == "SWIGTYPE_p_NameWrap");
- enforce(testJim(name) == "multiname num");
- enforce(testJohn(new PairIntBool(10, false)) == 123);
- auto newName = NewName.factory("factoryname");
- enforce(newName.getStoredName().getName() == "factoryname");
- }