diff --git a/TDD/biblioteca_test b/TDD/biblioteca_test new file mode 100755 index 0000000000000000000000000000000000000000..409e504964e45c3547fca68ea58c2007aed5e960 Binary files /dev/null and b/TDD/biblioteca_test differ diff --git a/TDD/sources/biblioteca-test.cpp b/TDD/sources/biblioteca-test.cpp index 43fe4111587b6a13f7b1c4e0a2aee84f62c24b20..74ebb80f5fb0105628784916a20886ee748f0723 100644 --- a/TDD/sources/biblioteca-test.cpp +++ b/TDD/sources/biblioteca-test.cpp @@ -199,7 +199,7 @@ TEST_CASE("Biblioteca") { cout << "=> Usuario devolveu no quarto dia: " << endl; hoje = Clock::fastFowardDays(chrono::days(4)); - CHECK (0 == contUsuarios.retornarEmprestimo("12345", make_shared<Livro>(l3))); + CHECK (10 == contUsuarios.retornarEmprestimo("12345", make_shared<Livro>(l3))); cout << "==> Não pode emprestar outra obra até pagar a multa: " << endl; dataDevolucao = contUsuarios.registrarEmprestimo("12345", make_shared<Livro>(l3)); diff --git a/sources/main.cpp b/sources/main.cpp index bae1dfda5d34343c21104414bea6ad2ffcaedc3e..c8ad4fb285ae579c28d775befb95e6559122c860 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -74,7 +74,7 @@ int main(){ cout << "> Iniciando Relogio "; chrono::year_month_day epoch = Clock::getTime(); chrono::year_month_day hoje = Clock::init(); - cout << epoch << endl; + cout << "Data: " << unsigned(hoje.day()) << "/" << unsigned(hoje.month()) << "/" << int(hoje.year()) << endl; // Cria Biblioteca cout << "> Instanciando Biblioteca" << endl;