Created
June 11, 2015 19:51
-
-
Save calindotgabriel/57407936e96067f80134 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mainwindow.h" | |
#include <QApplication> | |
#include <assert.h> | |
#include <string> | |
#include "product.h" | |
void test() { | |
Product product = Product(1, std::string("patrunjel"), 7.0); | |
assert(1 == product.getId()); | |
Product* product2 = new Product(2, std::string("kushkush"), 20.0); | |
assert("kushkush" == product2->getName()); | |
} | |
int main(int argc, char *argv[]) | |
{ | |
/*QApplication a(argc, argv); | |
MainWindow w; | |
w.show(); | |
return a.exec();*/ | |
test(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment