~ubuntu-branches/ubuntu/wily/coq-doc/wily

« back to all changes in this revision

Viewing changes to test-suite/success/Notations.v

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu, Stéphane Glondu, Samuel Mimram
  • Date: 2010-01-07 22:50:39 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107225039-n3cq82589u0qt0s2
Tags: 8.2pl1-1
[ Stéphane Glondu ]
* New upstream release (Closes: #563669)
  - remove patches
* Packaging overhaul:
  - use git, advertise it in Vcs-* fields of debian/control
  - use debhelper 7 and dh with override
  - use source format 3.0 (quilt)
* debian/control:
  - set Maintainer to d-o-m, set Uploaders to Sam and myself
  - add Homepage field
  - bump Standards-Version to 3.8.3
* Register PDF documentation into doc-base
* Add debian/watch
* Update debian/copyright

[ Samuel Mimram ]
* Change coq-doc's description to mention that it provides documentation in
  pdf format, not postscript, closes: #543545.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(* Check that "where" clause behaves as if given independently of the  *)
 
2
(* definition (variant of bug #1132 submitted by Assia Mahboubi) *)
 
3
 
 
4
Fixpoint plus1 (n m:nat) {struct n} : nat :=
 
5
   match n with
 
6
   | O => m
 
7
   | S p => S (p+m)
 
8
   end
 
9
 where "n + m" := (plus1 n m) : nat_scope.
 
10
 
 
11
(* Check behaviour wrt yet empty levels (see Stephane's bug #1850) *)
 
12
 
 
13
Parameter P : Type -> Type -> Type -> Type.
 
14
Notation "e |= t --> v" := (P e t v)     (at level 100, t at level 54).
 
15
Check (nat |= nat --> nat).
 
16
 
 
17
(* Check that first non empty definition at an empty level can be of any 
 
18
   associativity *)
 
19
 
 
20
Definition marker := O.
 
21
Notation "x +1" := (S x) (at level 8, left associativity).
 
22
Reset marker.
 
23
Notation "x +1" := (S x) (at level 8, right associativity).
 
24
 
 
25
(* Check that empty levels (here 8 and 2 in pattern) are added in the
 
26
   right order *)
 
27
 
 
28
Notation "' 'C_' G ( A )" := (A,G) (at level 8, G at level 2).
 
29
 
 
30
(* Check import of notations from within a section *)
 
31
 
 
32
Notation "+1 x" := (S x) (at level 25, x at level 9).
 
33
Section A. Global Notation "'Z'" := O (at level 9). End A.