From 32f995f1cec4428d38d688333eb1d2f1e479affa Mon Sep 17 00:00:00 2001
From: Ichthyostega
Date: Sat, 1 Apr 2017 18:39:53 +0200
Subject: [PATCH] Commands: simple instance management unit test PASS (#1089)
---
.../control/command-instance-manager-test.cpp | 6 ++--
wiki/thinkPad.ichthyo.mm | 32 +++++++++----------
2 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/tests/core/proc/control/command-instance-manager-test.cpp b/tests/core/proc/control/command-instance-manager-test.cpp
index a1dcd573d..c238bf854 100644
--- a/tests/core/proc/control/command-instance-manager-test.cpp
+++ b/tests/core/proc/control/command-instance-manager-test.cpp
@@ -79,13 +79,13 @@ namespace test {
public:
bool
- contains (Symbol instanceID)
+ contains (Command const& ref)
{
return queue_.end()!= std::find_if (queue_.begin()
,queue_.end()
,[=](Command const& elm)
{
- return instanceID == elm.getID();
+ return elm == ref;
});
}
};
@@ -128,8 +128,8 @@ namespace test {
CHECK (cmd.canExec());
iManager.dispatch (instanceID);
+ CHECK (fixture.contains (cmd));
CHECK (not iManager.contains (instanceID));
- CHECK (fixture.contains (instanceID));
VERIFY_ERROR (INVALID_COMMAND, iManager.getInstance (instanceID));
}
};
diff --git a/wiki/thinkPad.ichthyo.mm b/wiki/thinkPad.ichthyo.mm
index e5e93fa15..f8494dc7b 100644
--- a/wiki/thinkPad.ichthyo.mm
+++ b/wiki/thinkPad.ichthyo.mm
@@ -2663,7 +2663,7 @@
-
+
@@ -2695,11 +2695,11 @@
-
+
-
+
@@ -4266,7 +4266,7 @@
-
+
@@ -4292,7 +4292,7 @@
-
+
@@ -4404,7 +4404,7 @@
-
+
@@ -4686,7 +4686,7 @@
-
+
@@ -4706,7 +4706,7 @@
-
+
@@ -6078,7 +6078,7 @@
-
+
@@ -6115,7 +6115,7 @@
-
+
@@ -6575,7 +6575,7 @@
-
+
@@ -6589,7 +6589,7 @@
-
+
@@ -6635,7 +6635,7 @@
-
+
@@ -9524,7 +9524,7 @@
-
+
@@ -9742,7 +9742,7 @@
-
+
@@ -10089,7 +10089,7 @@
-
+