summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2020-09-07 18:42:44 +0200
committernsensfel <SpamShield0@noot-noot.org>2020-09-07 18:42:44 +0200
commitc4b0897e196dfdb685ee6c7aa542e7a0084db953 (patch)
treec5fe197691fa73fd6be7f12a5da21d346898fa89 /data/tests
parent6f0b536009a1e87068e20d025775aa6e736a7d3d (diff)
...
Diffstat (limited to 'data/tests')
-rw-r--r--data/tests/local_variables.fate4
-rw-r--r--data/tests/local_variables2.fate4
2 files changed, 8 insertions, 0 deletions
diff --git a/data/tests/local_variables.fate b/data/tests/local_variables.fate
index 45cc67b..33d8329 100644
--- a/data/tests/local_variables.fate
+++ b/data/tests/local_variables.fate
@@ -1,5 +1,8 @@
(fate_version 1)
+(require local_variables2.fate)
+
+(assert (= (var other_file_var) 1) FAILED: local from other file)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -107,4 +110,5 @@
)
FAILED: local M
)
+
(end)
diff --git a/data/tests/local_variables2.fate b/data/tests/local_variables2.fate
new file mode 100644
index 0000000..989d3f4
--- /dev/null
+++ b/data/tests/local_variables2.fate
@@ -0,0 +1,4 @@
+(fate_version 1)
+
+(local int other_file_var)
+(set other_file_var 1)