HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //usr/share/augeas/lenses/dist/tests/test_gtkbookmarks.aug
(*
Module: Test_GtkBookmarks
  Provides unit tests and examples for the <GtkBookmarks> lens.
*)

module Test_GtkBookmarks =

(* Test: GtkBookmarks.lns
     Test without label *)
test GtkBookmarks.lns get "ftp://user@myftp.com/somedir\n" =
 { "bookmark" = "ftp://user@myftp.com/somedir" }

(* Test: GtkBookmarks.lns
     Test with label *)
test GtkBookmarks.lns get "file:///home/rpinson/Ubuntu%20One Ubuntu One\n" =
 { "bookmark" = "file:///home/rpinson/Ubuntu%20One"
   { "label" = "Ubuntu One" } }

(* Test: GtkBookmarks.lns
     Empty lines are allowed, not comments *)
test GtkBookmarks.lns get "ftp://user@myftp.com/somedir\n\nfile:///home/rpinson/Ubuntu%20One Ubuntu One\n" =
 { "bookmark" = "ftp://user@myftp.com/somedir" }
 { }
 { "bookmark" = "file:///home/rpinson/Ubuntu%20One"
   { "label" = "Ubuntu One" } }