computerscare-vcv-modules

computerscare modules for VCV Rack
Log | Files | Refs

commit 50817cc93a2bd46cfa47471c0d08f0409fff6a37
parent a98f5c6ac968aa89026e7c2aef8eb1e1188b6375
Author: Adam Malone <1319733+freddyz@users.noreply.github.com>
Date:   Wed, 14 Nov 2018 21:57:09 -0600

add test file

Diffstat:
Asrc/test.cpp | 33+++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+), 0 deletions(-)

diff --git a/src/test.cpp b/src/test.cpp @@ -0,0 +1,33 @@ +#include "dtpulse.cpp" +std::string knoblookup = "abcdefghijklmnopqrstuvwxy"; +int main(int argc, char** argv) +{ + int type = 0; + std::vector<int> output; + std::string strResult = ""; + if(argv[2]) { + type = std::stoi(argv[2]); + } + if(type == 0) { + output = parseEntireString(argv[1],b64lookup,0); + } + else if(type==1) { + output = parseEntireString(argv[1],knoblookup,1); + } + else if(type==2) { + std::vector <std::string> input; + for(int i = 0; i < argc-3; i++) { + input.push_back(argv[i+3]); + } + strResult = interleaveExpand(input); + printf("%s\n",strResult.c_str()); + } + printVector(output); + return 0; +} +void printVector(std::vector <int> intVector) { + for (std::vector<int>::const_iterator i = intVector.begin(); i != intVector.end(); ++i){ + std::cout << *i << ' '; + } + std::cout << std::endl; +}