Fossil SCM

Add tests for the reserved names.

mistachkin 2020-08-17 20:51 sec2020
Commit df720b28fcec0e4c089e31c9bac6966bbe67291a5c89035f97be2f60c34a60e3
1 file changed +41
--- a/test/reserved-names.test
+++ b/test/reserved-names.test
@@ -0,0 +1,41 @@
1
+#
2
+# Copyright (c) 2020 D. Richard Hipp
3
+#
4
+# This program is free software; you can redistribute it and/or
5
+# modify it under the terms of the Simplified BSD License (also
6
+# known as the "2-Clause License" or "FreeBSD License".)
7
+#
8
+# This program is distributed in the hope that it will be useful,
9
+# but without any warranty; without even the implied warranty of
10
+# merchantability or fitness for a particular purpose.
11
+#
12
+# Author contact information:
13
+# [email protected]
14
+# http://www.hwaci.com/drh/
15
+#
16
+############################################################################
17
+#
18
+# Tests for reserved names.
19
+#
20
+
21
+test_setup
22
+
23
+###############################################################################
24
+
25
+set reserved_names_tests [list \
26
+ {0 list \
27
+ {2 a/.fslckout} \
28
+ {0 .fslckout/b} \
29
+ {0 fslckout} \
30
+ {0 .fslckoutx} \
31
+ {1 _FOSSIL_} \
32
+ {0 _FOSSIL} \
33
+ {0 FOSSIL_} \
34
+ {0 FOSSIL_} \
35
+ {0 a_FOSSIL_} \
36
+ FOSSIL_/a} \
37
+ {2 a/_FOSSIL_} \
38
+ {2 _FOSSIL_/c/.fslckout} \
39
+ {2 _FOSSIL_/c/.fslckout/_FOSSIL_} \
40
+ {0 _FOSSIL_/c/.fslckout/._FOSSIL_t} \
41
+ {0 a0 D. Richardckout-db}test_cleanup
--- a/test/reserved-names.test
+++ b/test/reserved-names.test
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/test/reserved-names.test
+++ b/test/reserved-names.test
@@ -0,0 +1,41 @@
1 #
2 # Copyright (c) 2020 D. Richard Hipp
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the Simplified BSD License (also
6 # known as the "2-Clause License" or "FreeBSD License".)
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but without any warranty; without even the implied warranty of
10 # merchantability or fitness for a particular purpose.
11 #
12 # Author contact information:
13 # [email protected]
14 # http://www.hwaci.com/drh/
15 #
16 ############################################################################
17 #
18 # Tests for reserved names.
19 #
20
21 test_setup
22
23 ###############################################################################
24
25 set reserved_names_tests [list \
26 {0 list \
27 {2 a/.fslckout} \
28 {0 .fslckout/b} \
29 {0 fslckout} \
30 {0 .fslckoutx} \
31 {1 _FOSSIL_} \
32 {0 _FOSSIL} \
33 {0 FOSSIL_} \
34 {0 FOSSIL_} \
35 {0 a_FOSSIL_} \
36 FOSSIL_/a} \
37 {2 a/_FOSSIL_} \
38 {2 _FOSSIL_/c/.fslckout} \
39 {2 _FOSSIL_/c/.fslckout/_FOSSIL_} \
40 {0 _FOSSIL_/c/.fslckout/._FOSSIL_t} \
41 {0 a0 D. Richardckout-db}test_cleanup

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button