[so] [Tema2][Linux] Testul 7

Ciprian Mihai Coman ciprianmihai.coman at gmail.com
Tue Apr 6 21:17:47 EEST 2010


Se pare ca diff merge putin ciudat, in sensul ca are rezultate diferite in
functie de ordinea fisierelor.

Exemplu:

$ echo -e "abc\n" > test1
$ echo -e "\nabc" > test2
$ diff -BEb test1 test2
1d0
< abc
2a2
> abc
$ diff -BEb test2 test1
$



2010/4/6 Lavinia Petrache <lavinia.petrache at gmail.com>

> Salut!
>
> Am remarcat si eu acea linie noua, testul imi pica, insa daca sterg din
> rezultatul oficial linia goala imi trece.
>
> În data de 6 aprilie 2010, 18:16, Catalin Moraru <catalin.me at gmail.com> a
> scris:
>
> Checkerul face diff -BEb intre fisierul de output corect si cel obtinut de
>> voi.
>> -B inseamna ca ignora liniile goale deci nu va afecta testarea (man diff
>> pentru mai multe detalii )
>>
>>
>> Catalin
>>
>>
>> 2010/4/6 Ciprian Mihai Coman <ciprianmihai.coman at gmail.com>
>>
>>> Cred ca e o mica greseala la outputul testului 7: prima linie este goala,
>>> iar textul care ar trebui sa-l afiseze clientul este pe linia 2.
>>>
>>> --
>>> Ciprian
>>>
>>> _______________________________________________
>>> so mailing list
>>> so at cursuri.cs.pub.ro
>>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>>>
>>>
>>
>> _______________________________________________
>> so mailing list
>> so at cursuri.cs.pub.ro
>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>>
>>
>
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>


-- 
Ciprian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/lurker/list/so.html/attachments/20100406/0286eed0/attachment.htm>


More information about the so mailing list