icnhoukdsiih / testlib

Automatically exported from code.google.com/p/testlib
0 stars 0 forks source link

Validator doesn't allow valid file #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Windows 7, mingw4.8.1

RiaD@riad-ultra-win ~
$ cat test.cpp
#include "testlib.h"

int main() {
        registerValidation();
        inf.readInt();
        inf.readEoln();
        return 0;
}

RiaD@riad-ultra-win ~
$ xxd input
0000000: 340d 0a                                  4..

RiaD@riad-ultra-win ~
$ g++ test.cpp

RiaD@riad-ultra-win ~
$ ./a.exe < input
FAIL Expected EOLN (stdin)

RiaD@riad-ultra-win ~
$

Expected: OK

Possible solution to remove 226,228 lines. Seems fileno is not a macro. I 
didn't check it on other verions/compilers

Original issue reported on code.google.com by riad...@gmail.com on 28 Jun 2013 at 8:51

GoogleCodeExporter commented 8 years ago
inf.readEof() is forgotten, but it doesn't matter here

Original comment by riad...@gmail.com on 29 Jun 2013 at 9:45

GoogleCodeExporter commented 8 years ago
Fixed, try trunk-version.

Original comment by mirzayan...@gmail.com on 14 Jul 2013 at 7:54

GoogleCodeExporter commented 8 years ago

Original comment by mirzayan...@gmail.com on 14 Jul 2013 at 7:54

GoogleCodeExporter commented 8 years ago
OK. Works in g++4.8, VS??

Original comment by riad...@gmail.com on 14 Jul 2013 at 10:28