commit 8aadc947a4b8e4a99a45fe741561b8bf8c33e68a
Author: DPS2004 <dpsophinos@gmail.com>
AuthorDate: Mon Apr 11 11:48:28 2022 -0400
Commit: DPS2004 <dpsophinos@gmail.com>
CommitDate: Mon Apr 11 12:01:53 2022 -0400
fix tests
fix tests
auegh
i sure do wish i could run the tests locally
add zeros
trim down stubinput
---
source/hostVmShared.h | 2 ++
test/stubhost.cpp | 5 ++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/source/hostVmShared.h b/source/hostVmShared.h
index 2222ece..0512e9b 100644
--- a/source/hostVmShared.h
+++ b/source/hostVmShared.h
@@ -2,6 +2,8 @@
#include <stdint.h>
+#include <string>
+
/// Creates a bitmask from a bit number.
#define BITMASK(n) (1U<<(n))
diff --git a/test/stubhost.cpp b/test/stubhost.cpp
index d0b0f0b..eab4969 100644
--- a/test/stubhost.cpp
+++ b/test/stubhost.cpp
@@ -16,6 +16,9 @@ using namespace std;
static uint8_t stubCurrKDown;
static uint8_t stubCurrKHeld;
+static bool stubCurrKBdown = false;
+static std::string stubCurrKBkey = "";
+
Host::Host() { }
@@ -44,7 +47,7 @@ void StubHost::stubInput(uint8_t kdown, uint8_t kheld) {
}
InputState_t Host::scanInput(){
- return InputState_t {stubCurrKDown, stubCurrKHeld};
+ return InputState_t {stubCurrKDown, stubCurrKHeld, 0, 0, 0, stubCurrKBdown, stubCurrKBkey};
}
bool Host::shouldQuit() {