2011-12-29 21:42:26 +00:00
|
|
|
// Test hybrid comparison (equal operator)
|
|
|
|
|
|
|
|
|
|
var a := "testvalue";
|
|
|
|
|
var b := "value2";
|
|
|
|
|
var c := "value";
|
|
|
|
|
|
|
|
|
|
/**************************/
|
2024-10-04 10:29:55 +02:00
|
|
|
if ( b[1, 5] == c )
|
|
|
|
|
print( "1: Success!" );
|
2011-12-29 21:42:26 +00:00
|
|
|
else
|
2024-10-04 10:29:55 +02:00
|
|
|
print( "1: Failure!" );
|
2011-12-29 21:42:26 +00:00
|
|
|
endif
|
|
|
|
|
|
2024-10-04 10:29:55 +02:00
|
|
|
if ( c == b[1, 5] )
|
|
|
|
|
print( "1: Success!" );
|
2011-12-29 21:42:26 +00:00
|
|
|
else
|
2024-10-04 10:29:55 +02:00
|
|
|
print( "1: Failure!" );
|
2011-12-29 21:42:26 +00:00
|
|
|
endif
|
|
|
|
|
/**************************/
|
|
|
|
|
|
|
|
|
|
/**************************/
|
2024-10-04 10:29:55 +02:00
|
|
|
if ( b[1, 5] != c )
|
|
|
|
|
print( "1: Failure!" );
|
2011-12-29 21:42:26 +00:00
|
|
|
else
|
2024-10-04 10:29:55 +02:00
|
|
|
print( "1: Success!" );
|
2011-12-29 21:42:26 +00:00
|
|
|
endif
|
|
|
|
|
|
2024-10-04 10:29:55 +02:00
|
|
|
if ( c != b[1, 5] )
|
|
|
|
|
print( "1: Failure!" );
|
2011-12-29 21:42:26 +00:00
|
|
|
else
|
2024-10-04 10:29:55 +02:00
|
|
|
print( "1: Success!" );
|
2011-12-29 21:42:26 +00:00
|
|
|
endif
|
|
|
|
|
/**************************/
|