Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adam
stdpp
Commits
2b610e92
Commit
2b610e92
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Test cases for `pretty` of `N`, `nat`, and `Z`.
parent
359bdf0f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/pretty.ref
+0
-0
0 additions, 0 deletions
tests/pretty.ref
tests/pretty.v
+62
-0
62 additions, 0 deletions
tests/pretty.v
with
62 additions
and
0 deletions
tests/pretty.ref
0 → 100644
+
0
−
0
View file @
2b610e92
This diff is collapsed.
Click to expand it.
tests/pretty.v
0 → 100644
+
62
−
0
View file @
2b610e92
From
stdpp
Require
Import
pretty
.
Section
N
.
Local
Open
Scope
N_scope
.
Lemma
pretty_N_0
:
pretty
0
=
"0"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_N_1
:
pretty
1
=
"1"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_N_9
:
pretty
9
=
"9"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_N_10
:
pretty
10
=
"10"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_N_100
:
pretty
100
=
"100"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_N_123456789
:
pretty
123456789
=
"123456789"
.
Proof
.
reflexivity
.
Qed
.
End
N
.
Section
nat
.
Local
Open
Scope
nat_scope
.
Lemma
pretty_nat_0
:
pretty
0
=
"0"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_nat_1
:
pretty
1
=
"1"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_nat_9
:
pretty
9
=
"9"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_nat_10
:
pretty
10
=
"10"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_nat_100
:
pretty
100
=
"100"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_nat_1234
:
pretty
1234
=
"1234"
.
Proof
.
reflexivity
.
Qed
.
End
nat
.
Section
Z
.
Local
Open
Scope
Z_scope
.
Lemma
pretty_Z_0
:
pretty
0
=
"0"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_Z_1
:
pretty
1
=
"1"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_Z_9
:
pretty
9
=
"9"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_Z_10
:
pretty
10
=
"10"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_Z_100
:
pretty
100
=
"100"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_Z_123456789
:
pretty
123456789
=
"123456789"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_Z_opp_1
:
pretty
(
-1
)
=
"-1"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_Z_opp_9
:
pretty
(
-9
)
=
"-9"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_Z_opp_10
:
pretty
(
-10
)
=
"-10"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_Z_opp_100
:
pretty
(
-100
)
=
"-100"
.
Proof
.
reflexivity
.
Qed
.
Lemma
pretty_Z_opp_123456789
:
pretty
(
-123456789
)
=
"-123456789"
.
Proof
.
reflexivity
.
Qed
.
End
Z
.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment