diff options
| author | Hugo Herbelin | 2020-05-15 16:51:29 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2020-05-15 16:51:29 +0200 |
| commit | a5c9ad83071c99110fed464a0b9a0f5e73f1be9b (patch) | |
| tree | 4e436ada97fc8e74311e8c77312e164772957ac9 /test-suite/output/ZSyntax.v | |
| parent | b5b6e2d4c8347cb25da6f827a6b6f06cb0f566e5 (diff) | |
| parent | 31f5e89eaefcff04a04850d77b0c83cb24602f98 (diff) | |
Merge PR #11948: Hexadecimal numerals
Reviewed-by: JasonGross
Ack-by: Zimmi48
Ack-by: herbelin
Diffstat (limited to 'test-suite/output/ZSyntax.v')
| -rw-r--r-- | test-suite/output/ZSyntax.v | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test-suite/output/ZSyntax.v b/test-suite/output/ZSyntax.v index d3640cae44..be9dc543d6 100644 --- a/test-suite/output/ZSyntax.v +++ b/test-suite/output/ZSyntax.v @@ -1,5 +1,6 @@ Require Import ZArith. Check 32%Z. +Check (eq_refl : 0x2a%Z = 42%Z). Check (fun f : nat -> Z => (f 0%nat + 0)%Z). Check (fun x : positive => Zpos (xO x)). Check (fun x : positive => (Zpos x + 1)%Z). @@ -15,3 +16,10 @@ Check (Z.of_nat 0 = 0%Z). (* Submitted by Pierre Casteran *) Require Import Arith. Check (0 + Z.of_nat 11)%Z. + +(* Check hexadecimal printing *) +Definition to_num_int n := Numeral.IntHex (Z.to_hex_int n). +Numeral Notation Z Z.of_num_int to_num_int : Z_scope. +Check 42%Z. +Check (-42)%Z. +Check 0%Z. |
