aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2016-06-28 01:20:11 +0200
committerPierre-Marie Pédrot2016-06-28 01:20:11 +0200
commitf57b6e3478f3a64a1f8d669ff256d9506ba67688 (patch)
treec3c266d03e5c680bfee31011d57a74634fde0dfc /test-suite
parent9f9c1dc37ca3ffe30417c8f7b63d62ad5b63e51b (diff)
parentee0d4870fb982877be7cf07c75e3d039b82ddfc0 (diff)
Finalizing the only printing feature.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/output/onlyprinting.out2
-rw-r--r--test-suite/output/onlyprinting.v5
-rw-r--r--test-suite/success/onlyprinting.v7
3 files changed, 14 insertions, 0 deletions
diff --git a/test-suite/output/onlyprinting.out b/test-suite/output/onlyprinting.out
new file mode 100644
index 0000000000..e0a30fcf6b
--- /dev/null
+++ b/test-suite/output/onlyprinting.out
@@ -0,0 +1,2 @@
+0:-) 0
+ : nat
diff --git a/test-suite/output/onlyprinting.v b/test-suite/output/onlyprinting.v
new file mode 100644
index 0000000000..1973385a0a
--- /dev/null
+++ b/test-suite/output/onlyprinting.v
@@ -0,0 +1,5 @@
+Reserved Notation "x :-) y" (at level 50, only printing).
+
+Notation "x :-) y" := (plus x y).
+
+Check 0 + 0.
diff --git a/test-suite/success/onlyprinting.v b/test-suite/success/onlyprinting.v
new file mode 100644
index 0000000000..91a628d792
--- /dev/null
+++ b/test-suite/success/onlyprinting.v
@@ -0,0 +1,7 @@
+Notation "x ++ y" := (plus x y) (only printing).
+
+Fail Check 0 ++ 0.
+
+Notation "x + y" := (max x y) (only printing).
+
+Check (eq_refl : 42 + 18 = 60).