aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorHugo Herbelin2016-07-16 21:41:24 +0200
committerHugo Herbelin2016-07-17 09:35:51 +0200
commit91f44b164c5d9fa170a8faa7227aff08c1335861 (patch)
tree80c2a5cd8289123457436790cf7d8e297727ec2e /test-suite
parent45f61ca74808f8b34dcd558b7c85528725e2e35f (diff)
Fixing printing of notations with several instances of a recursive pattern.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/output/Notations3.out8
-rw-r--r--test-suite/output/Notations3.v12
2 files changed, 20 insertions, 0 deletions
diff --git a/test-suite/output/Notations3.out b/test-suite/output/Notations3.out
new file mode 100644
index 0000000000..b3d2580ace
--- /dev/null
+++ b/test-suite/output/Notations3.out
@@ -0,0 +1,8 @@
+[<0, 2 >]
+ : nat * nat * (nat * nat)
+[<0, 2 >]
+ : nat * nat * (nat * nat)
+(0, 2, (2, 2))
+ : nat * nat * (nat * nat)
+pair (pair O (S (S O))) (pair (S (S O)) O)
+ : prod (prod nat nat) (prod nat nat)
diff --git a/test-suite/output/Notations3.v b/test-suite/output/Notations3.v
new file mode 100644
index 0000000000..32d70ac18c
--- /dev/null
+++ b/test-suite/output/Notations3.v
@@ -0,0 +1,12 @@
+(**********************************************************************)
+(* Check printing of notations with several instances of a recursive pattern *)
+(* Was wrong but I could not trigger a problem due to the collision between *)
+(* different instances of ".." *)
+
+Notation "[< x , y , .. , z >]" := (pair (.. (pair x y) ..) z,pair y ( .. (pair z x) ..)).
+Check [<0,2>].
+Check ((0,2),(2,0)).
+Check ((0,2),(2,2)).
+Unset Printing Notations.
+Check [<0,2>].
+Set Printing Notations.