File: good-header-test.cpp

package info (click to toggle)
cmake-extras 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 776 kB
  • sloc: sh: 281; cpp: 189; python: 121; xml: 24; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <demolib/good-header.h>
#include <glib.h>

using namespace std;

namespace {

static void test_new_unique_string() {
    auto s = demolib::new_unique_string();    
    g_assert_cmpstr(s->c_str(), ==, "hi");
}

}

int main(int argc, char** argv) {
    g_test_init (&argc, &argv, NULL);
    g_test_add_func("/includechecker-demo/good-header/test_new_unique_string", test_new_unique_string);
    return g_test_run();
}