File: ensure_not.cpp

package info (click to toggle)
libtut 0.0.20070706-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 1,148 kB
  • ctags: 607
  • sloc: cpp: 3,588; xml: 137; makefile: 61; ansic: 9
file content (28 lines) | stat: -rw-r--r-- 421 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <tut/tut.hpp>

namespace tut
{
  /**
   * Testing ensure() method.
   */
  struct ensure_not_test
  {   
  };

  typedef test_group<ensure_not_test> tf;
  typedef tf::object object;
  tf ensure_not_test("ensure_not()");

  /**
   * Checks ensure_not
   */
  template<>
  template<>
  void object::test<1>()
  {
    set_test_name("checks ensure_not");
    
    ensure_not("ok", 1==2);
    ensure_not(1==2);
  }
}