Skip to content

Instantly share code, notes, and snippets.

@calindotgabriel
Created June 11, 2015 19:51
Show Gist options
  • Save calindotgabriel/57407936e96067f80134 to your computer and use it in GitHub Desktop.
Save calindotgabriel/57407936e96067f80134 to your computer and use it in GitHub Desktop.
#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