0.1 update, make the stop container code more robust and fix some bugs, update the about screen for version 0.1
This commit is contained in:
parent
91fa50370a
commit
e8e93d7b21
17 changed files with 449 additions and 43 deletions
19
tests/test_operation_state.cpp
Normal file
19
tests/test_operation_state.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include "operation_state.hpp"
|
||||
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
OperationState operation;
|
||||
assert(!operation.busy());
|
||||
|
||||
operation.begin("Stopping container", "Please wait...");
|
||||
assert(operation.busy());
|
||||
assert(operation.title() == "Stopping container");
|
||||
assert(operation.message() == "Please wait...");
|
||||
|
||||
operation.complete("Container stopped.");
|
||||
assert(!operation.busy());
|
||||
assert(operation.result() == "Container stopped.");
|
||||
std::cout << "Operation state tests passed\n";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue