JASSv2
Static Public Attributes | List of all members
JASS::unittest_data Class Reference

Global data used for unit testing. More...

#include <unittest_data.h>

Static Public Attributes

static std::string ten_documents = "<DOC><DOCNO> 1 </DOCNO>ten</DOC><DOC><DOCNO>2</DOCNO>ten nine</DOC><DOC><DOCNO>3</DOCNO>ten nine eight</DOC><DOC><DOCNO>4</DOCNO>ten nine eight seven</DOC><DOC><DOCNO>5</DOCNO>ten nine eight seven six</DOC><DOC><DOCNO>6</DOCNO>ten nine eight seven six five</DOC><DOC><DOCNO>7</DOCNO>ten nine eight seven six five four</DOC><DOC><DOCNO>8</DOCNO>ten nine eight seven six five four three</DOC><DOC><DOCNO>9</DOCNO>ten nine eight seven six five four three two</DOC><DOC><DOCNO>10</DOCNO>ten nine eight seven six five four three two one</DOC>"
 Ten TREC formatted documents with ten terms (ten .. one) where each term occurs it's count number of times.
 
static std::string ten_document_1 = "<DOC><DOCNO> 1 </DOCNO>ten</DOC>"
 The first of the 10 ten_documents.
 
static std::string ten_document_1_key = "1"
 The primary key of the first of the 10 ten_documents.
 
static std::string ten_document_2 = "<DOC><DOCNO>2</DOCNO>ten nine</DOC>"
 The second of the 10 ten_documents.
 
static std::string ten_document_2_key = "2"
 The primary bkey of the second of the 10 ten_documents.
 
static std::string ten_document_3 = "<DOC><DOCNO>3</DOCNO>ten nine eight</DOC>"
 The third of the 10 ten_documents.
 
static std::string ten_document_3_key = "3"
 The primary key of the third of the 10 ten_documents.
 
static std::string ten_document_4 = "<DOC><DOCNO>4</DOCNO>ten nine eight seven</DOC>"
 The fourth of the 10 ten_documents.
 
static std::string ten_document_4_key = "4"
 The primary key of the fourth of the 10 ten_documents.
 
static std::string ten_document_5 = "<DOC><DOCNO>5</DOCNO>ten nine eight seven six</DOC>"
 The fifth of the 10 ten_documents.
 
static std::string ten_document_5_key = "5"
 The primary key of the fifth of the 10 ten_documents.
 
static std::string ten_document_6 = "<DOC><DOCNO>6</DOCNO>ten nine eight seven six five</DOC>"
 The sixth of the 10 ten_documents.
 
static std::string ten_document_6_key = "6"
 The primary key of the sixth of the 10 ten_documents.
 
static std::string ten_document_7 = "<DOC><DOCNO>7</DOCNO>ten nine eight seven six five four</DOC>"
 The seventh of the 10 ten_documents.
 
static std::string ten_document_7_key = "7"
 The primary key of the seventh of the 10 ten_documents.
 
static std::string ten_document_8 = "<DOC><DOCNO>8</DOCNO>ten nine eight seven six five four three</DOC>"
 The eightth of the 10 ten_documents.
 
static std::string ten_document_8_key = "8"
 The primary key of the eightth of the 10 ten_documents.
 
static std::string ten_document_9 = "<DOC><DOCNO>9</DOCNO>ten nine eight seven six five four three two</DOC>"
 The ninth of the 10 ten_documents.
 
static std::string ten_document_9_key = "9"
 The primary key of the ninth of the 10 ten_documents.
 
static std::string ten_document_10 ="<DOC><DOCNO>10</DOCNO>ten nine eight seven six five four three two one</DOC>"
 The tenth of the 10 ten_documents.
 
static std::string ten_document_10_key = "10"
 The primary key of the tenth of the 10 ten_documents.
 
static std::string ten_document_11_broken ="<DOC><DOCNO>11"
 a broken document that has a DOC and DOCNO but no close tags
 
static std::string ten_document_12_broken ="<DOC><DOCNO>12</DOCNO>twelve eleven ten nine eight seven six five four three two one"
 a broken document that has a DOC and DOCNO but no close DOC tag
 
static std::string ten_document_13_broken ="<DOC><DOCNO>13 thirteen twelve eleven ten nine eight seven six five four three two one</DOC>"
 a broken document that has a DOC and DOCNO but no close DOCNO tag
 
static std::string three_documents_asymetric = "<DOC><DOCNO>1</DOCNO>one two</DOC><DOC><DOCNO>2</DOCNO>one two two</DOC><DOC><DOCNO>3</DOCNO>one two two</DOC>"
 Three documents with terms occuring an asymetric number of times.
 
static const std::string five_trec_assessments
 Five example TREC assessments. More...
 
static const std::string ten_price_assessments_prices
 The prices of ten example items. More...
 
static const std::string ten_price_assessments
 The assessments of ten example items. More...
 

Detailed Description

Global data used for unit testing.

Member Data Documentation

◆ five_trec_assessments

const std::string JASS::unittest_data::five_trec_assessments
static
Initial value:
=
"1 0 AP880217-0026 0\n"
"1 0 AP880216-0139 1\n"
"2 0 AP880212-0161 0\n"
"1 0 AP880216-0169 0\n"
"1 0 AP880217-0030 0\n"

Five example TREC assessments.

◆ ten_price_assessments

const std::string JASS::unittest_data::ten_price_assessments
static
Initial value:
=
"1 0 one 0\n"
"1 0 two 1\n"
"1 0 three 0\n"
"1 0 four 0\n"
"1 0 five 0\n"
"2 0 six 0\n"
"2 0 seven 1\n"
"2 0 eight 1\n"
"2 0 nine 1\n"
"2 0 ten 0\n"

The assessments of ten example items.

◆ ten_price_assessments_prices

const std::string JASS::unittest_data::ten_price_assessments_prices
static
Initial value:
=
"PRICE 0 one 1\n"
"PRICE 0 two 2\n"
"PRICE 0 three 3\n"
"PRICE 0 four 4\n"
"PRICE 0 five 5\n"
"PRICE 0 six 6\n"
"PRICE 0 seven 7\n"
"PRICE 0 eight 8\n"
"PRICE 0 nine 9\n"
"PRICE 0 ten 10\n"

The prices of ten example items.


The documentation for this class was generated from the following files: