# ddocunittest

int foo(int a, int b);
  foo function - 1 example
  Examples:

      assert(foo(1, 1) == 2);

bool bar();
  bar function - 1 example
  Examples:

      // documented
      assert(bar());

  Examples:
  placeholder
void doo();
  doo function - no examples
int add(int a, int b);
  add function - 3 examples
  Examples:

      assert(add(1, 1) == 2);

  Examples:

      // documented
      assert(add(3, 3) == 6);
      assert(add(4, 4) == 8);

  Examples:

      // documented
      assert(add(5, 5) == 10);
      assert(add(6, 6) == 12);

class Foo;
  class Foo
  Examples:

      Foo foo = new Foo;

class SomeClass;
  some class - 1 example
  Examples:

      SomeClass sc = new SomeClass;

class Outer;
  Outer - 1 example
  Examples:

      Outer outer = new Outer;

  class Inner;
    Inner
    Examples:

        Inner inner = new Inner;

void foobar();
  foobar - no examples
void foo(int x);
  func - 4 examples
  Examples:

      foo(1);

  Examples:

      foo(2);

  Examples:

      foo(2);

  Examples:

      foo(4);

void fooImport();
  Examples:
  test

      fooImport();

void fooStaticImport();
  Examples:
  test

      fooStaticImport();

void fooPublicImport();
  Examples:
  test

      fooPublicImport();

void fooSelectiveImport();
  Examples:
  test

      fooSelectiveImport();

void fooRenamedImport();
  Examples:
  test

      fooRenamedImport();

void fooConditionalDecl1a();
  Examples:

      int x1a;

void fooConditionalDecl1b();
  Examples:

      int x1b;

void fooConditionalDecl3a();
void fooConditionalDecl3b();
void barConditionalDecl4a();
  Examples:

      int x4a;

void barConditionalDecl4b();
  Examples:

      int x4b;

void barConditionalDecl6a();
  Examples:

      int x6a;

void barConditionalDecl6b();
  Examples:

      int x6b;

void foo9474();
  Examples:
  Example

      foo9474();

void bar9474();
  doc
  Examples:
  Example

      bar9474();

struct S9474;
  Examples:

      S9474 s;

int autovar9474;
  Examples:

      int v = autovar9474;

auto autofun9474();
  Examples:

      int n = autofun9474();

template Template9474()
  Examples:

      alias Template9474!() T;

  void foo();
    Shouldn't link following unittest to here
void fooNoDescription();
  Examples:

      fooNoDescription();

  Examples:

      if (true) {fooNoDescription(); } /* comment */

void foo9757();
void bar9757();
void baz9757();
  test for bugzilla 9757
  Examples:

      foo9757(); bar9757();

  Examples:

      bar9757(); foo9757();

auto redBlackTree(E)(E[] elems...);
auto redBlackTree(bool allowDuplicates, E)(E[] elems...);
auto redBlackTree(alias less, E)(E[] elems...);
  with template functions
  Examples:

      auto rbt1 = redBlackTree(0, 1, 5, 7);
      auto rbt2 = redBlackTree!string("hello", "world");
      auto rbt3 = redBlackTree!true(0, 1, 5, 7, 5);
      auto rbt4 = redBlackTree!"a > b"(0, 1, 5, 7);

void foo();
  test
  Examples:
bool balancedParens10519(string, char, char);
  Examples:

      auto s = "1 + (2 * (3 + 1 / 2)";
      assert(!balancedParens10519(s, '(', ')'));

struct S12097;
void f12097();
struct T12097(T);
  declaration
  Examples:
  ddoc code 1

      int a = 1;

  Examples:
  ddoc code 2

      int[] arr;

  void foo();
    method
void fun14594a()();
  testA
  Examples:

      fun14594a();

void fun14594b()();
void fun14594b(T)(T);
  testB
  Examples:

      fun14594b(); fun14594b(1);

void fun14594c()();
void fun14594c(T)(T);
  testC
  Examples:

      fun14594c(); fun14594c(1);

void fun14594d()();
void fun14594d(T)(T);
  testD
  Examples:

      fun14594d();

  Examples:

      fun14594d(1);

void fun14594e()();
  testE
  concatenated doc-comment fun14594e
  Examples:
  doc-unittest fun14594e

      fun14594e();

void fun14594f()();
void fun14594f(T)(T);
  testF
  concatenated doc-comment fun14594f
  Examples:
  doc-unittest fun14594f

      fun14594f();

Page generated by Ddoc.