aboutsummaryrefslogtreecommitdiff
path: root/tests/locus00.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/locus00.at')
-rw-r--r--tests/locus00.at30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/locus00.at b/tests/locus00.at
new file mode 100644
index 0000000..a00f1a6
--- /dev/null
+++ b/tests/locus00.at
@@ -0,0 +1,30 @@
+# This file is part of grecs -*- Autotest -*-
+# Copyright (C) 2007, 2009-2011 Sergey Poznyakoff
+#
+# Grecs is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Grecs is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Grecs. If not, see <http://www.gnu.org/licenses/>.
+
+AT_SETUP(Locations: scalar value)
+AT_KEYWORDS([locus scalar locus00])
+
+AT_DATA([test.cf],[
+string val;
+])
+
+AT_CHECK([gcfpeek -nopath -locus test.cf .string],
+[0],
+[test.cf:2.8-10: "val"
+])
+
+AT_CLEANUP
+

Return to:

Send suggestions and report system problems to the System administrator.