[cpl] [Tema 1] String literals

Andrei-Silviu DRAGNEA (24887) andrei.dragnea at stud.acs.upb.ro
Sat Oct 22 16:55:57 EEST 2016


Am trimis mailul din greseala fara sa termin ce aveam de zis.


Nu inteleg exact ce prelucrari sunt necesare asupra unui string literal ca sa se obtina serializarea din cele doua teste ce verifica explicit asta.

De asemenea, ambele teste au ca output de referinta doua fisiere in format JSON invalide (datorita escaparii unui \ din fata unui ", ceea ce termina prematur stringul).

Testul strlit.lcpl are de asemenea un string de forma "\a\b...", aceste secvente nefiind escapari valide, care ar putea fi serializate asa cum e in fisierul de referinta.


Nu inteleg nici eu exact ce nu e in regula, asa ca scuze daca nu am explicat destul de clar.


Multumesc.

________________________________
From: Andrei-Silviu DRAGNEA (24887)
Sent: Saturday, October 22, 2016 4:50:43 PM
To: cpl at cursuri.cs.pub.ro
Subject: [cpl][Tema 1] String literals


As dori o clarificare cu privire la string literals, in special in ceea ce priveste testele:

1. tests/advanced/strlit.lcpl

2. tests/simple/sl-comments.lcpl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/cpl/attachments/20161022/2f134a71/attachment.html>


More information about the cpl mailing list