Skip to content

Commit

Permalink
[skip ci] Update test specification, add folding (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmoene committed Nov 7, 2021
1 parent f5d2c17 commit 2407e55
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,10 @@ The version of *optional lite* is available via tag `[.version]`. The following
### A.2 Optional Lite test specification
<details>
<summary>click to expand</summary>
<p>
```
union: A C++03 union can only contain POD types
optional: Allows to default construct an empty optional (1a)
Expand Down Expand Up @@ -471,6 +475,8 @@ optional: Allows to obtain value via value()
optional: Allows to obtain moved-value via value() (C++11)
optional: Allows to obtain value or default via value_or()
optional: Allows to obtain moved-value or moved-default via value_or() (C++11)
optional: Allows to obtain value or function call result via value_or_eval() [extension]
optional: Allows to obtain moved-value or function call result via value_or_eval() (C++11) [extension]
optional: Throws bad_optional_access at disengaged access
optional: Throws bad_optional_access with non-empty what()
optional: Allows to reset content
Expand All @@ -488,3 +494,5 @@ make_optional: Allows to in-place move-construct optional from initializer-list
std::hash<>: Allows to obtain hash (C++11)
tweak header: reads tweak header if supported [tweak]
```
</p>
</details>
4 changes: 2 additions & 2 deletions test/optional.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ CASE( "optional: Allows to obtain moved-value or moved-default via value_or() (C
#endif
}

CASE( "optional: Allows to obtain value or function call result via value_or_eval()" )
CASE( "optional: Allows to obtain value or function call result via value_or_eval()" " [extension]" )
{
#if !optional_USES_STD_OPTIONAL
#if !optional_CONFIG_NO_EXTENSIONS
Expand Down Expand Up @@ -1035,7 +1035,7 @@ CASE( "optional: Allows to obtain value or function call result via value_or_eva
#endif
}

CASE( "optional: Allows to obtain moved-value or function call result via value_or_eval() (C++11)" )
CASE( "optional: Allows to obtain moved-value or function call result via value_or_eval() (C++11)" " [extension]" )
{
#if !optional_USES_STD_OPTIONAL
#if !optional_CONFIG_NO_EXTENSIONS
Expand Down

0 comments on commit 2407e55

Please sign in to comment.