| Server IP : 85.214.239.14 / Your IP : 216.73.216.99 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/root/proc/3/cwd/proc/3/root/usr/share/augeas/lenses/dist/tests/ |
Upload File : |
module Test_tinc =
let lns = Tinc.lns
test lns get "Subnet = 10.1.4.5\n" = { "Subnet" = "10.1.4.5" }
test lns get "foo = bar\n" = { "foo" = "bar" }
test lns get "foo bar\n" = { "foo" = "bar" }
test lns get "foo bar\n" = { "foo" = "bar" }
test lns get
"-----BEGIN RSA PUBLIC KEY-----
abcde
-----END RSA PUBLIC KEY-----" = { "#key" = "abcde" }
test lns get "foo = bar\nbar = baz\n" =
{ "foo" = "bar" }
{ "bar" = "baz" }
test lns get
"foo = bar
-----BEGIN RSA PUBLIC KEY-----
bar
-----END RSA PUBLIC KEY-----" =
{ "foo" = "bar" }
{ }
{ "#key" = "bar" }
(*
test lns get
"-----BEGIN RSA PUBLIC KEY-----
foo
-----END RSA PUBLIC KEY-----
-----BEGIN RSA PUBLIC KEY-----
bar
-----END RSA PUBLIC KEY-----
" = ?
*)