Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Edits to match coding standard in unit test

  • Loading branch information...
commit 6405ed0e0456f30496d6020ab546bd4c2f54e7f1 1 parent d3353b3
@mightyleader authored
Showing with 8 additions and 9 deletions.
  1. +1 −2  BarcodeKit/Symbol.cpp
  2. +7 −7 BarcodeKit/main.cpp
View
3  BarcodeKit/Symbol.cpp
@@ -46,7 +46,7 @@ Symbol::Symbol( int characterData[ ], int dataLength, int startWith, int gapWidt
this->symbolType = ofType;
}
-Symbol::~Symbol()
+Symbol::~Symbol( )
{
}
@@ -122,7 +122,6 @@ void Symbol::arrayIntoVector( int source[ ], int sourceLength, vector<int> &dest
{
int holdingVar = source[ iter ];
destination.assign( iter, holdingVar );
- //cout << destination[iter] << endl; //DEBUG
}
if ( destination.capacity( ) == 0 )
{
View
14 BarcodeKit/main.cpp
@@ -12,15 +12,15 @@
using namespace std;
-int main(int argc, const char * argv[])
+int main( int argc, const char * argv[ ] )
{
//Unit Test Data for Symbol
- vector<int> *testVector = new vector<int>();
- testVector->push_back(1);
- testVector->push_back(2);
- testVector->push_back(3);
- testVector->push_back(4);
- testVector->push_back(1);
+ vector<int> *testVector = new vector<int>( );
+ testVector->push_back( 1 );
+ testVector->push_back( 2 );
+ testVector->push_back( 3 );
+ testVector->push_back( 4 );
+ testVector->push_back( 1 );
int st = 1, ic = 1, le = 0, fp = 5;
//unit Test - Symbol
Please sign in to comment.
Something went wrong with that request. Please try again.