- Echo the input in the text interface when libreadline is not present, so that the non-regression tests can still pass in this case.

- Changed a bad file format in a test, and adapted the reference accordingly
This commit is contained in:
Olivier Teulière 2009-01-15 20:55:57 +00:00
parent e83e4dcc99
commit d0294b5a38
3 changed files with 34 additions and 61 deletions

View file

@ -1,31 +1,31 @@
e
t WAEROSC
j ROSACE H8
t W+TSREIN
j WESTERN 13G
t I+RDTVI?
j DIVeRTIR 8A
t ELMOEAH
j AH I8
t EELMO+PI
j DIPLOMEE A8
t OHUMJUI
j JOUI 12K
t HMU+EAUA
j HUE 14F
t AAMU+UBS
j SAMBA 15H
t UU+NYTEP
j TYPE O12
a gd # r1
t NUU+S?GE
a P
a t
a l
a g
a gd # r2
r
a r
a gd # r3
q
q
e
t WAEROSC
j ROSACE H8
t W+TSREIN
j WESTERN 13G
t I+RDTVI?
j DIVeRTIR 8A
t ELMOEAH
j AH I8
t EELMO+PI
j DIPLOMEE A8
t OHUMJUI
j JOUI 12K
t HMU+EAUA
j HUE 14F
t AAMU+UBS
j SAMBA 15H
t UU+NYTEP
j TYPE O12
a gd # r1
t NUU+S?GE
a P
a t
a l
a g
a gd # r2
r
a r
a gd # r3
q
q

View file

@ -3,43 +3,24 @@ Using seed: 0
commande> e
mode entraînement
[?] pour l'aide
commande>
commande> t WAEROSC
commande>
commande> j ROSACE H8
commande>
commande> t W+TSREIN
commande>
commande> j WESTERN 13G
commande>
commande> t I+RDTVI?
commande>
commande> j DIVeRTIR 8A
commande>
commande> t ELMOEAH
commande>
commande> j AH I8
commande>
commande> t EELMO+PI
commande>
commande> j DIPLOMEE A8
commande>
commande> t OHUMJUI
commande>
commande> j JOUI 12K
commande>
commande> t HMU+EAUA
commande>
commande> j HUE 14F
commande>
commande> t AAMU+UBS
commande>
commande> j SAMBA 15H
commande>
commande> t UU+NYTEP
commande>
commande> j TYPE O12
commande>
commande> a gd # r1
Ar [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1]
Br [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][00000000:-1][00005040: 1][00200200: 3][00200222: 1][002c4108: 1][00200222: 2][01384100: 1][01384100: 1]
@ -72,9 +53,7 @@ commande> a gd # r1
Mc [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][00000144: 2][00000000:-1][00000000:-1][00080220: 2][ffffffff:-1]
Nc [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][010d714e: 1][00000000:-1][00005040: 1][ffffffff:-1][ffffffff:-1]
Oc [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][00000000:15][00000000:-1][00000000:-1][00000000:-1][00000000:-1]
commande>
commande> t NUU+S?GE
commande>
commande> a P
Eliot
@ -89,14 +68,11 @@ Eliot
UU+NYTEP TYPE 61 O 12
total 467
commande>
commande> a t
NUUS?GE
commande>
commande> a l
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ?
5 1 1 2 9 2 2 0 4 0 1 4 1 5 3 0 1 3 3 3 4 1 0 1 0 1 1
commande>
commande> a g
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
A - - - - - - - D I P L O M E E
@ -114,7 +90,6 @@ commande> a g
M - - - - - - - - - - - U N - -
N - - - - - - - - - - - I - - -
O - - - - - - - - - - - T Y P E
commande>
commande> a gd # r2
Ar [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1]
Br [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][00000000:-1][00005040: 1][00200200: 3][00200222: 1][002c4108: 1][00200222: 2][01384100: 1][01384100: 1]
@ -147,9 +122,7 @@ commande> a gd # r2
Mc [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][00000144: 2][00000000:-1][00000000:-1][00080220: 2][ffffffff:-1]
Nc [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][010d714e: 1][00000000:-1][00005040: 1][ffffffff:-1][ffffffff:-1]
Oc [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][00000000:15][00000000:-1][00000000:-1][00000000:-1][00000000:-1]
commande>
commande> r
commande>
commande> a r
1: SaUGRENU * 82 E4
2: eNjUGUES * 66 D8
@ -161,7 +134,6 @@ commande> a r
8: NUaGeUSE * 64 D4
9: GUeUSENT * 62 F1
10: GUEUSaNT * 60 F1
commande>
commande> a gd # r3
Ar [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1][00000000:-1]
Br [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][00000000:-1][00005040: 1][00200200: 3][00200222: 1][002c4108: 1][00200222: 2][01384100: 1][01384100: 1]
@ -194,8 +166,6 @@ commande> a gd # r3
Mc [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][00000144: 2][00000000:-1][00000000:-1][00080220: 2][ffffffff:-1]
Nc [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][010d714e: 1][00000000:-1][00005040: 1][ffffffff:-1][ffffffff:-1]
Oc [ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][ffffffff:-1][00000000:15][00000000:-1][00000000:-1][00000000:-1][00000000:-1]
commande>
commande> q
fin du mode entraînement
commande>
commande> q

View file

@ -94,6 +94,9 @@ wchar_t *rl_gets()
cout << "commande> ";
string line;
std::getline(cin, line);
// Echo the input, to behave like readline and allow playing the
// non-regression tests
cout << line << endl;
// Get the needed length (we _can't_ use string::size())
size_t len = mbstowcs(NULL, line.c_str(), 0);