Debian Codegraph @

tests/inputs/igorpro.ipf

raw
1 // Taken from https://github.com/t-b/igor-unit-testing-framework/blob/master/procedures/unit-testing-comparators.ipf
2 // licensed under BSD
3
4 /// @class NEQ_VAR_DOCU
5 /// Tests two variables for inequality
6 /// @param var1 first variable
7 /// @param var2 second variable
8 static Function NEQ_VAR_WRAPPER(var1, var2, flags)
9 variable var1, var2
10 variable flags
11
12 incrAssert()
13
14 if(shouldDoAbort())
15 return NaN
16 endif
17
18 if(EQUAL_VAR(var1, var2)) // do some stuff
19 if(flags & OUTPUT_MESSAGE)
20 printFailInfo()
21 endif
22 if(flags & INCREASE_ERROR)
23 incrError()
24 endif
25 if(flags & ABORT_FUNCTION)
26 abortNow()
27 endif
28 endif
29 End