Skip to content
Snippets Groups Projects
  • Vladimir Davydov's avatar
    7794891d
    test: allow to omit message in ok/is/isnt unit test helpers · 7794891d
    Vladimir Davydov authored
    It's really annoying to add a message after each check in a unit test.
    Let's make this optional. If the message is omitted, "line %d" will be
    used instead. Also, let's print the expression on failure because it
    may be useful if exact sources are unavailable.
    
    NO_DOC=refactoring
    NO_CHANGELOG=refactoring
    
    (cherry picked from commit 62ae8bf3)
    7794891d
    History
    test: allow to omit message in ok/is/isnt unit test helpers
    Vladimir Davydov authored
    It's really annoying to add a message after each check in a unit test.
    Let's make this optional. If the message is omitted, "line %d" will be
    used instead. Also, let's print the expression on failure because it
    may be useful if exact sources are unavailable.
    
    NO_DOC=refactoring
    NO_CHANGELOG=refactoring
    
    (cherry picked from commit 62ae8bf3)