Merge branch 'master' into fix-error-message

This commit is contained in:
Rudi Grinberg 2018-06-18 18:03:15 +07:00 committed by GitHub
commit fc0e603128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 1 deletions

View File

@ -127,7 +127,7 @@ following test elements are clearly identified:
- the test expectation
- the test outcome
You can have a look at `this blob post
You can have a look at `this blog post
<https://blog.janestreet.com/testing-with-expectations/>`_ to find out
more about expectation tests. But Back to Jbuilder, the workflow for
expectation tests is always as follow:

View File

@ -107,3 +107,33 @@ parse {|"\%{x}"|}
- : parse_result =
Different {jbuild = Ok ["\\%{x}"]; dune = Error "unknown escape sequence"}
|}]
parse {|"$foo"|}
[%%expect{|
- : parse_result = Same (Ok ["$foo"])
|}]
parse {|"%foo"|}
[%%expect{|
- : parse_result = Same (Ok ["%foo"])
|}]
parse {|"bar%foo"|}
[%%expect{|
- : parse_result = Same (Ok ["bar%foo"])
|}]
parse {|"bar$foo"|}
[%%expect{|
- : parse_result = Same (Ok ["bar$foo"])
|}]
parse {|"%bar$foo%"|}
[%%expect{|
- : parse_result = Same (Ok ["%bar$foo%"])
|}]
parse {|"$bar%foo%"|}
[%%expect{|
- : parse_result = Same (Ok ["$bar%foo%"])
|}]