From d98a590b0637ca50380d424ae638d001c79305b9 Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Tue, 28 Jun 2016 00:40:07 +0200 Subject: Adding a test-suite for the only printing flag. --- test-suite/output/onlyprinting.out | 2 ++ test-suite/output/onlyprinting.v | 5 +++++ test-suite/success/onlyprinting.v | 7 +++++++ 3 files changed, 14 insertions(+) create mode 100644 test-suite/output/onlyprinting.out create mode 100644 test-suite/output/onlyprinting.v create mode 100644 test-suite/success/onlyprinting.v (limited to 'test-suite') 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). -- cgit v1.2.3