Updated t00065 test case
This commit is contained in:
@@ -4,7 +4,14 @@
|
|||||||
|
|
||||||
namespace clanguml {
|
namespace clanguml {
|
||||||
namespace t00065 {
|
namespace t00065 {
|
||||||
|
|
||||||
|
enum class ABC { a, b, c };
|
||||||
|
|
||||||
|
enum XYZ { x, y, z };
|
||||||
|
|
||||||
struct A {
|
struct A {
|
||||||
|
ABC abc;
|
||||||
|
XYZ xyz;
|
||||||
detail::AImpl *pimpl;
|
detail::AImpl *pimpl;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
13
tests/t00065/module2/concepts/concepts.h
Normal file
13
tests/t00065/module2/concepts/concepts.h
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace clanguml {
|
||||||
|
namespace t00065 {
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
concept bconcept = requires(T t) {
|
||||||
|
T{};
|
||||||
|
t.b();
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,7 +1,21 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "concepts/concepts.h"
|
||||||
|
|
||||||
namespace clanguml {
|
namespace clanguml {
|
||||||
namespace t00065 {
|
namespace t00065 {
|
||||||
struct B { };
|
struct B {
|
||||||
|
B() = default;
|
||||||
|
void b() { }
|
||||||
|
};
|
||||||
|
|
||||||
|
template <typename T> struct C {
|
||||||
|
T *t;
|
||||||
|
};
|
||||||
|
|
||||||
|
template <bconcept T> struct D {
|
||||||
|
T t;
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5,6 +5,8 @@ namespace clanguml {
|
|||||||
namespace t00065 {
|
namespace t00065 {
|
||||||
struct R {
|
struct R {
|
||||||
A *a;
|
A *a;
|
||||||
|
C<B> c;
|
||||||
|
D<B> d;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -301,7 +301,9 @@ using namespace clanguml::test::matchers;
|
|||||||
#include "t00062/test_case.h"
|
#include "t00062/test_case.h"
|
||||||
#include "t00063/test_case.h"
|
#include "t00063/test_case.h"
|
||||||
#include "t00064/test_case.h"
|
#include "t00064/test_case.h"
|
||||||
|
#if defined(ENABLE_CXX_STD_20_TEST_CASES)
|
||||||
#include "t00065/test_case.h"
|
#include "t00065/test_case.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Sequence diagram tests
|
/// Sequence diagram tests
|
||||||
|
|||||||
@@ -189,6 +189,9 @@ test_cases:
|
|||||||
- name: t00064
|
- name: t00064
|
||||||
title: Template type list test case
|
title: Template type list test case
|
||||||
description:
|
description:
|
||||||
|
- name: t00065
|
||||||
|
title: Class diagram with packages from directory structure
|
||||||
|
description:
|
||||||
Sequence diagrams:
|
Sequence diagrams:
|
||||||
- name: t20001
|
- name: t20001
|
||||||
title: Basic sequence diagram test case
|
title: Basic sequence diagram test case
|
||||||
|
|||||||
Reference in New Issue
Block a user