mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 18:26:16 +02:00
c70484454f
* Lang now verifies errors and parse output * Some new miscellaneous tests * Easy way to update the tests * Document workflow in manual * Use `!` not `~` as separater char for sed It is confusing to use `~` when we are talking about paths and home directories! * Test test suite itself (`test/lang-test/infra.sh`) Additionally, run shellcheck on `tests/lang.sh` to help ensure it is correct, now that is is more complex. Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
builtins.fromJSON
|
|
''
|
|
{
|
|
"Video": {
|
|
"Title": "The Penguin Chronicles",
|
|
"Width": 1920,
|
|
"Height": 1080,
|
|
"EmbeddedData": [3.14159, 23493,null, true ,false, -10],
|
|
"Thumb": {
|
|
"Url": "http://www.example.com/video/5678931",
|
|
"Width": 200,
|
|
"Height": 250
|
|
},
|
|
"Animated" : false,
|
|
"IDs": [116, 943, 234, 38793, true ,false,null, -100],
|
|
"Escapes": "\"\\\/\t\n\r\t",
|
|
"Subtitle" : false,
|
|
"Latitude": 37.7668,
|
|
"Longitude": -122.3959
|
|
}
|
|
}
|
|
''
|
|
==
|
|
{ Video =
|
|
{ Title = "The Penguin Chronicles";
|
|
Width = 1920;
|
|
Height = 1080;
|
|
EmbeddedData = [ 3.14159 23493 null true false (0-10) ];
|
|
Thumb =
|
|
{ Url = "http://www.example.com/video/5678931";
|
|
Width = 200;
|
|
Height = 250;
|
|
};
|
|
Animated = false;
|
|
IDs = [ 116 943 234 38793 true false null (0-100) ];
|
|
Escapes = "\"\\\/\t\n\r\t"; # supported in JSON but not Nix: \b\f
|
|
Subtitle = false;
|
|
Latitude = 37.7668;
|
|
Longitude = -122.3959;
|
|
};
|
|
}
|