Diff
Not logged in

Differences From Artifact [a4ea515a0f014c9c]:

To Artifact [f9cdaf211a0e9fb0]:


50 unittest 50 unittest 51 { 51 { 52 auto p = new LexPosition("hello.cpp", 123, 45); 52 auto p = new LexPosition("hello.cpp", 123, 45); 53 53 54 assert_eq( p.filename, "hello.cpp" ); 54 assert_eq( p.filename, "hello.cpp" ); 55 assert_eq( p.lineno, 123 ); 55 assert_eq( p.lineno, 123 ); 56 assert_eq( p.column, 45 ); 56 assert_eq( p.column, 45 ); 57 assert_eq( to!string(p), "hello.cpp:123:45" ); | 57 assert_eq( text(p), "hello.cpp:123:45" ); 58 58 59 assert( !__traits(compiles, new LexPosition) ); 59 assert( !__traits(compiles, new LexPosition) ); 60 assert( !__traits(compiles, p.filename="foo") ); 60 assert( !__traits(compiles, p.filename="foo") ); 61 assert( !__traits(compiles, p.lineno =789) ); 61 assert( !__traits(compiles, p.lineno =789) ); 62 assert( !__traits(compiles, p.column =222) ); 62 assert( !__traits(compiles, p.column =222) ); 63 63 64 auto q = new LexPosition("hello.cpp", 123, 46); 64 auto q = new LexPosition("hello.cpp", 123, 46);