data: java sample project

* added javaparser as sample project
* fixed crash in utility::isPrefix when prefix is longer than the actual string
* fixed crash when inserting a meta value that contains a special character
* added "language" to project settings of tutorial
* changed separators in serialized name hierarchy
* added javaparser project to windows installers
* enabled the checkbox for start menu shortcut in installer by default
* removed autorefresh icon
* removed JavaSmallTest project
This commit is contained in:
malte_langkabel
2016-08-25 15:18:00 +02:00
parent 520a1b2d48
commit 0268e924aa
164 changed files with 47237 additions and 403 deletions
+11 -11
View File
@@ -11,7 +11,7 @@ public:
void test_search_index_finds_id_of_element_added()
{
SearchIndex index;
index.addNode(1, NameHierarchy::deserialize("foo\tvoid\r() const"));
index.addNode(1, NameHierarchy::deserialize("foo\tsvoid\tp() const"));
index.finishSetup();
std::vector<SearchResult> results = index.search("oo", 0);
@@ -23,7 +23,7 @@ public:
void test_search_index_finds_correct_indices_for_query()
{
SearchIndex index;
index.addNode(1, NameHierarchy::deserialize("foo\tvoid\r() const"));
index.addNode(1, NameHierarchy::deserialize("foo\tsvoid\tp() const"));
index.finishSetup();
std::vector<SearchResult> results = index.search("oo", 0);
@@ -36,8 +36,8 @@ public:
void test_search_index_finds_ids_for_ambiguous_query()
{
SearchIndex index;
index.addNode(1, NameHierarchy::deserialize("for\tvoid\r() const"));
index.addNode(2, NameHierarchy::deserialize("fos\tvoid\r() const"));
index.addNode(1, NameHierarchy::deserialize("for\tsvoid\tp() const"));
index.addNode(2, NameHierarchy::deserialize("fos\tsvoid\tp() const"));
index.finishSetup();
std::vector<SearchResult> results = index.search("fo", 0);
@@ -51,7 +51,7 @@ public:
void test_search_index_does_not_find_anything_after_clear()
{
SearchIndex index;
index.addNode(1, NameHierarchy::deserialize("foo\tvoid\r() const"));
index.addNode(1, NameHierarchy::deserialize("foo\tsvoid\tp() const"));
index.finishSetup();
index.clear();
std::vector<SearchResult> results = index.search("oo", 0);
@@ -62,8 +62,8 @@ public:
void test_search_index_does_not_find_all_results_when_max_amount_is_limited()
{
SearchIndex index;
index.addNode(1, NameHierarchy::deserialize("foo1\tvoid\r() const"));
index.addNode(2, NameHierarchy::deserialize("foo2\tvoid\r() const"));
index.addNode(1, NameHierarchy::deserialize("foo1\tsvoid\tp() const"));
index.addNode(2, NameHierarchy::deserialize("foo2\tsvoid\tp() const"));
index.finishSetup();
std::vector<SearchResult> results = index.search("oo", 1);
@@ -73,8 +73,8 @@ public:
void test_search_index_query_is_case_insensitive()
{
SearchIndex index;
index.addNode(1, NameHierarchy::deserialize("foo1\tvoid\r() const"));
index.addNode(2, NameHierarchy::deserialize("FOO2\tvoid\r() const"));
index.addNode(1, NameHierarchy::deserialize("foo1\tsvoid\tp() const"));
index.addNode(2, NameHierarchy::deserialize("FOO2\tsvoid\tp() const"));
index.finishSetup();
std::vector<SearchResult> results = index.search("oo", 0);
@@ -85,8 +85,8 @@ public:
{
SearchIndex index;
index.addNode(1, NameHierarchy::deserialize("oaabbcc\tvoid\r() const"));
index.addNode(2, NameHierarchy::deserialize("ocbcabc\tvoid\r() const"));
index.addNode(1, NameHierarchy::deserialize("oaabbcc\tsvoid\tp() const"));
index.addNode(2, NameHierarchy::deserialize("ocbcabc\tsvoid\tp() const"));
index.finishSetup();
std::vector<SearchResult> results = index.search("abc", 0);