Skip to content

Commit

Permalink
Polish test suite (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyishuai authored May 19, 2022
1 parent 77820cd commit 31c1365
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v1.6.9 (2022-05-19)
- [bug] Fix multiline string support (#81)

## v1.6.8 (2021-09-17)
- [compat] Allow version strings without patch numbers, _e.g._ `8.13+beta1`
The patch number will be set to 0 upon empty, _i.e._ `(8, 13, 0)`
Expand Down
3 changes: 2 additions & 1 deletion test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@
(alias
(name runtest)
(package cppo)
(deps version.out))
(action
(diff version.ref version.out)))

(alias
(name runtest)
Expand Down
2 changes: 1 addition & 1 deletion test/test.cppo
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ obj
' (* lone single quote *)

#define one 1
one is not 1
one = 1

#undef x
#define x #
Expand Down
2 changes: 1 addition & 1 deletion test/test.ref
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ obj
# 78 "test.cppo"
1
# 78 "test.cppo"
is not 1
= 1

# 82 "test.cppo"
#
Expand Down
37 changes: 37 additions & 0 deletions test/version.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

# 5 "version.cppo"
Cape buffalos


# 10 "version.cppo"
onion rings

# 16 "version.cppo"
major:
# 16 "version.cppo"
123
# 17 "version.cppo"
minor:
# 17 "version.cppo"
05
# 18 "version.cppo"
patch:
# 18 "version.cppo"
2


# 21 "version.cppo"
prerelease:
# 21 "version.cppo"
alpha.1


# 27 "version.cppo"
build:
# 27 "version.cppo"
foo-2.1

# 32 "version.cppo"
Coq:
# 32 "version.cppo"
(8, 13, 0)

0 comments on commit 31c1365

Please sign in to comment.