| Test :: JSON. Test :: JSON è un modulo Perl che contiene i dati del test JSON. |
Scarica ora |
Test :: JSON. Classifica e riepilogo
- Licenza:
- Perl Artistic License
- Sito web dell'editore:
- http://search.cpan.org/~ovid/
Test :: JSON. Tag
Test :: JSON. Descrizione
Test :: JSON è un modulo perl che contiene i dati del test JSON. Test :: JSON è un modulo Perl che contiene test JSON Data.Synopsis Usa Test: JSON; is_valid_json $ JSON, '... JSON è ben formato'; is_json $ JSON, $ aspettami_json, '... e corrisponde a ciò che ci aspettavamo'; JavaScript Object Notation (JSON) è un formato di interscambio di dati leggero. Test :: JSON semplifica di verificare che tu abbia creato un JSON valido e che corrisponda al tuo output previsto.testsis_valid_json is_valid_json $ JSON, '... JSON è ben formato'; Test passa se la stringa passata è valida json.is_json is_json $ JSON, $ aspettami_json, '... e corrisponde a ciò che ci aspettavamo "; test passa se le due stringhe JSON sono valide JSON e valutano la stessa struttura dei dati. Le differenze sono usate per fornire una facile diagnostica del perché il JSON Le strutture non corrispondono. Ad esempio: test non riuscito '... e identico json dovrebbe corrispondere' in T / 10testjson.t alla linea 14. + ---- + --------------------- -------- + ---------------------------- + + | ELT | GOT | Previsto | + ---- + --------------------------- + ---------------- ------------ + |. 0 | {| {| | 1 | BOOL => '1', | BOOL => '1', | | 2 |. Descrizione => Bless ({| Description => Bless Bless ({| | 3 | Value => Undef | Valore => Undef | | 4 |}, 'JSON :: NOTString'), |}, 'JSON :: NOTString') , |. | 5 |. ID => '1', | ID => '1', | * 6 |. NAME => 'FOO' | NOME => 'FO' * | 7 |} |} | + ---- + --------------------------- + ---------------- ----------- + Requisiti: · Requisiti perl: · Perl.
Test :: JSON. Software correlato