Commit 70e5efc4 authored by Steffen Michels's avatar Steffen Michels

Merge branch 'nameInfix' into 'master'

add infix operator for assigning names

See merge request !18
parents d602eccf 6bf8e58a
Pipeline #12358 passed with stage
in 32 seconds
......@@ -52,7 +52,20 @@ ForEach :: ![x] !(x->p) -> Property | Testable p & TestArg x
classify :: !Bool l !p -> Property | Testable p & genShow{|*|} l
label :: !l !p -> Property | Testable p & genShow{|*|} l
name :: !n !p -> Property | Testable p & toString n
/**
* Assigns a name to a testable property.
*
* @param The name
* @param The testable property
* @return The named property
* @type n p -> Property | Testable p & toString n
*/
(as) infix 0
(as) p n :== name n p
limitNrOfRecFieldValues :: !(Map (TypeName, RecFieldName) Int) !p -> Property | Testable p
instance ~ Bool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment