Navigation

Operators and Keywords

Function List:

C++ API

test_if.m File Reference


Functions

id i ()
 !if (i==0)%!i++
 !printf_assert ("%d\n", i)
!endif !assert (prog_output_assert("1"))
"fail\n" printf_assert ()
!else !printf_assert ("pass\n")
!end !assert (prog_output_assert("pass"))
id x ()
 !if (eye(2))%!printf_assert("fail\n")
 !elseif (x)%!printf_assert("pass\n")
 !elseif (y)%!printf_assert("pass\n")
 !if (y)%!printf_assert("pass\n")

Variables

 !y = -2

Function Documentation

! end !assert ( prog_output_assert("pass")   ) 

! endif !assert ( prog_output_assert("1")   ) 

!elseif (  ) 

!elseif (  ) 

!if (  ) 

!if ( eye(2)   ) 

!if ( = =0  ) 

! else !printf_assert ( "pass\n"   ) 

!printf_assert ( "%d\n"  ,
 
)

id i (  )  [virtual]

"fail\n" printf_assert (  )  [virtual]

id x (  )  [virtual]


Variable Documentation

!y = -2