mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-29 20:34:56 +01:00
- 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:
parent
e83e4dcc99
commit
d0294b5a38
3 changed files with 34 additions and 61 deletions
|
@ -3,43 +3,24 @@ Using seed: 0
|
||||||
commande> e
|
commande> e
|
||||||
mode entraînement
|
mode entraînement
|
||||||
[?] pour l'aide
|
[?] pour l'aide
|
||||||
commande>
|
|
||||||
commande> t WAEROSC
|
commande> t WAEROSC
|
||||||
commande>
|
|
||||||
commande> j ROSACE H8
|
commande> j ROSACE H8
|
||||||
commande>
|
|
||||||
commande> t W+TSREIN
|
commande> t W+TSREIN
|
||||||
commande>
|
|
||||||
commande> j WESTERN 13G
|
commande> j WESTERN 13G
|
||||||
commande>
|
|
||||||
commande> t I+RDTVI?
|
commande> t I+RDTVI?
|
||||||
commande>
|
|
||||||
commande> j DIVeRTIR 8A
|
commande> j DIVeRTIR 8A
|
||||||
commande>
|
|
||||||
commande> t ELMOEAH
|
commande> t ELMOEAH
|
||||||
commande>
|
|
||||||
commande> j AH I8
|
commande> j AH I8
|
||||||
commande>
|
|
||||||
commande> t EELMO+PI
|
commande> t EELMO+PI
|
||||||
commande>
|
|
||||||
commande> j DIPLOMEE A8
|
commande> j DIPLOMEE A8
|
||||||
commande>
|
|
||||||
commande> t OHUMJUI
|
commande> t OHUMJUI
|
||||||
commande>
|
|
||||||
commande> j JOUI 12K
|
commande> j JOUI 12K
|
||||||
commande>
|
|
||||||
commande> t HMU+EAUA
|
commande> t HMU+EAUA
|
||||||
commande>
|
|
||||||
commande> j HUE 14F
|
commande> j HUE 14F
|
||||||
commande>
|
|
||||||
commande> t AAMU+UBS
|
commande> t AAMU+UBS
|
||||||
commande>
|
|
||||||
commande> j SAMBA 15H
|
commande> j SAMBA 15H
|
||||||
commande>
|
|
||||||
commande> t UU+NYTEP
|
commande> t UU+NYTEP
|
||||||
commande>
|
|
||||||
commande> j TYPE O12
|
commande> j TYPE O12
|
||||||
commande>
|
|
||||||
commande> a gd # r1
|
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]
|
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]
|
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]
|
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]
|
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]
|
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> t NUU+S?GE
|
||||||
commande>
|
|
||||||
commande> a P
|
commande> a P
|
||||||
Eliot
|
Eliot
|
||||||
|
|
||||||
|
@ -89,14 +68,11 @@ Eliot
|
||||||
UU+NYTEP TYPE 61 O 12
|
UU+NYTEP TYPE 61 O 12
|
||||||
|
|
||||||
total 467
|
total 467
|
||||||
commande>
|
|
||||||
commande> a t
|
commande> a t
|
||||||
NUUS?GE
|
NUUS?GE
|
||||||
commande>
|
|
||||||
commande> a l
|
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 ?
|
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
|
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
|
commande> a g
|
||||||
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
||||||
A - - - - - - - D I P L O M E E
|
A - - - - - - - D I P L O M E E
|
||||||
|
@ -114,7 +90,6 @@ commande> a g
|
||||||
M - - - - - - - - - - - U N - -
|
M - - - - - - - - - - - U N - -
|
||||||
N - - - - - - - - - - - I - - -
|
N - - - - - - - - - - - I - - -
|
||||||
O - - - - - - - - - - - T Y P E
|
O - - - - - - - - - - - T Y P E
|
||||||
commande>
|
|
||||||
commande> a gd # r2
|
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]
|
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]
|
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]
|
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]
|
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]
|
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> r
|
||||||
commande>
|
|
||||||
commande> a r
|
commande> a r
|
||||||
1: SaUGRENU * 82 E4
|
1: SaUGRENU * 82 E4
|
||||||
2: eNjUGUES * 66 D8
|
2: eNjUGUES * 66 D8
|
||||||
|
@ -161,7 +134,6 @@ commande> a r
|
||||||
8: NUaGeUSE * 64 D4
|
8: NUaGeUSE * 64 D4
|
||||||
9: GUeUSENT * 62 F1
|
9: GUeUSENT * 62 F1
|
||||||
10: GUEUSaNT * 60 F1
|
10: GUEUSaNT * 60 F1
|
||||||
commande>
|
|
||||||
commande> a gd # r3
|
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]
|
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]
|
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]
|
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]
|
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]
|
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
|
commande> q
|
||||||
fin du mode entraînement
|
fin du mode entraînement
|
||||||
commande>
|
|
||||||
commande> q
|
commande> q
|
||||||
|
|
|
@ -94,6 +94,9 @@ wchar_t *rl_gets()
|
||||||
cout << "commande> ";
|
cout << "commande> ";
|
||||||
string line;
|
string line;
|
||||||
std::getline(cin, 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())
|
// Get the needed length (we _can't_ use string::size())
|
||||||
size_t len = mbstowcs(NULL, line.c_str(), 0);
|
size_t len = mbstowcs(NULL, line.c_str(), 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue