Differences From Artifact [a4ea515a0f014c9c]:
- File
polemy/lex.d
- 2010-11-13 02:48:58 - part of checkin [1c01f44f52] on branch trunk - simplepatternmatch (user: kinaba) [annotate]
To Artifact [f9cdaf211a0e9fb0]:
- File
polemy/lex.d
- 2010-11-20 09:20:03 - part of checkin [515502e8d1] on branch trunk - table get, init, ask expressions addded (user: kinaba) [annotate]
50 50 unittest
51 51 {
52 52 auto p = new LexPosition("hello.cpp", 123, 45);
53 53
54 54 assert_eq( p.filename, "hello.cpp" );
55 55 assert_eq( p.lineno, 123 );
56 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 59 assert( !__traits(compiles, new LexPosition) );
60 60 assert( !__traits(compiles, p.filename="foo") );
61 61 assert( !__traits(compiles, p.lineno =789) );
62 62 assert( !__traits(compiles, p.column =222) );
63 63
64 64 auto q = new LexPosition("hello.cpp", 123, 46);