-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #539 from NathanReb/fix-test-for-5-3
Add new `[%%expect_in <version-range> {| ... |}]` syntax for expect tests and fix 5.3 builds
- Loading branch information
Showing
6 changed files
with
350 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
val split_file : | ||
file_contents:string -> Lexing.lexbuf -> (Lexing.position * string) list | ||
type version = int * int | ||
|
||
type version_range = | ||
| Only of version | ||
| Up_to of version | ||
| From of version | ||
| Between of version * version | ||
|
||
(*[[%%ignore]], [[%%expect{|...|}] or [%%expect_in 5.3 {|...|}]*) | ||
type expect_block = | ||
| Ignore | ||
| Regular | ||
| Versioned of (version_range * string) list | ||
|
||
type chunk = { | ||
phrases : string; | ||
phrases_start : Lexing.position; | ||
expect : expect_block; | ||
} | ||
|
||
val split_file : file_contents:string -> Lexing.lexbuf -> chunk list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.