1 assert( eq( 1, 1.0 ) ); 2 assert( eq( "hello", "hello"w ) ); 3 assert( !eq( cast(void[])"hello", cast(void[])"hello"w ) ); 4 assert( eq( cast(void[])"hello", cast(void[])"hello" ) ); 5 assert( eq( cast(void[])"hello", "hello" ) ); 6 assert( !eq( cast(void[])"hello", "hello"w ) ); 7 assert( eq( [[1,2],[3,4]], [[1.0f,2],[3.0f,4]] ) ); 8 assert( !eq( [[1,2],[3,4]], [[1.1f,2],[3.0f,4]] ) ); 9 assert( !eq( [[1,2],[3,4]], [[1.0f,2],[3.0f]] ) ); 10 assert( eq( [1,2,3], [1.0,2,3] ) ); 11 assert( eq( [1.0f,2,3], [1.0,2,3] ) ); 12 assert( eq( [1,2,3], [1,2,3] ) ); 13 assert( !eq( [1.0000001,2,3], [1,2,3] ) ); 14 assert( eq( ["hello","world"], ["hello","world"] ) ); 15 assert( !eq( "hello", [1,2,3] ) ); 16 static assert( !__traits(compiles, eq(["hello"],1)) ); 17 static assert( !__traits(compiles, eq(["hello"],[1,2,3])) );