LibPkg
Functions | Variables
test/version.cc File Reference
#include <iostream>
#include <stdexcept>
#include "libpkg/version.h"

Functions

void test_eq (const char **table, unsigned int size, const string &name, unsigned int *errors)
 
void test_ineq (const char **table, unsigned int size, const string &name, unsigned int *errors)
 
void test_conv (const char **table, unsigned int size, const string &name, unsigned int *errors)
 
void test_version (unsigned int *errors)
 
int main (void)
 

Variables

const char * eq_table_a []
 
const char * eq_table_b []
 
const char * ineq_table_a []
 
const char * ineq_table_b []
 
const char * conv_table []
 

Function Documentation

void test_eq ( const char **  table,
unsigned int  size,
const string &  name,
unsigned int *  errors 
)

Referenced by test_version().

void test_ineq ( const char **  table,
unsigned int  size,
const string &  name,
unsigned int *  errors 
)

Referenced by test_version().

void test_conv ( const char **  table,
unsigned int  size,
const string &  name,
unsigned int *  errors 
)
void test_version ( unsigned int *  errors)
int main ( void  )

References test_version().

Variable Documentation

const char* eq_table_a[]
Initial value:
={
"",
"-",
":",
"0:",
"0000:",
"0000:-"}

Referenced by test_version().

const char* eq_table_b[]
Initial value:
={
"a-a",
"a-a0",
"a-a0000",
"a0-a",
"a0-a0",
"a0-a0000",
"a0000-a0000"}

Referenced by test_version().

const char* ineq_table_a[]

Referenced by test_version().

const char* ineq_table_b[]
Initial value:
={
"0.0.0",
"0.0.1-0~pre9",
"0.0.1-0~pre10",
"0.0.1-0",
"0.0.1-0.pre9",
"0.0.1-0.pre10",
"0.0.1-1",
"0.0.2",
"0.1.0",
"0.1.9",
"0.1.10",
"0.2.0",
"1.0.0",
"1:0.0.0"}

Referenced by test_version().

const char* conv_table[]
Initial value:
={
"",
"--",
"::"}

Referenced by test_version().


Reference Manual LibPkg Version 0.6.1 (28 Jan 2015)