From b1e32f9542ccdd10dfb6984e2f9e133bf3dc4289 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Sat, 4 Sep 2010 21:29:27 +0000 Subject: [PATCH] Fix tests This was SVN commit r8077. --- .../simulation/components/tests/test_GuiInterface.js | 12 ++++++++---- source/ps/tests/test_CLogger.h | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js b/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js index a74c898e6a..98ed8d383d 100644 --- a/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js +++ b/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js @@ -29,7 +29,8 @@ AddMock(100, IID_Player, { GetColour: function() { return { r: 1, g: 1, b: 1, a: 1}; }, GetPopulationCount: function() { return 10; }, GetPopulationLimit: function() { return 20; }, - GetResourceCounts: function() { return { food: 100 }; } + GetResourceCounts: function() { return { food: 100 }; }, + IsTrainingQueueBlocked: function() { return false; }, }); AddMock(101, IID_Player, { @@ -38,7 +39,8 @@ AddMock(101, IID_Player, { GetColour: function() { return { r: 1, g: 0, b: 0, a: 1}; }, GetPopulationCount: function() { return 40; }, GetPopulationLimit: function() { return 30; }, - GetResourceCounts: function() { return { food: 200 }; } + GetResourceCounts: function() { return { food: 200 }; }, + IsTrainingQueueBlocked: function() { return false; }, }); TS_ASSERT_UNEVAL_EQUALS(cmp.GetSimulationState(), { @@ -49,7 +51,8 @@ TS_ASSERT_UNEVAL_EQUALS(cmp.GetSimulationState(), { color: { r:1, g:1, b:1, a:1 }, popCount: 10, popLimit: 20, - resourceCounts: { food: 100 } + resourceCounts: { food: 100 }, + trainingQueueBlocked: false, }, { name: "Player 2", @@ -57,7 +60,8 @@ TS_ASSERT_UNEVAL_EQUALS(cmp.GetSimulationState(), { color: { r:1, g:0, b:0, a:1 }, popCount: 40, popLimit: 30, - resourceCounts: { food: 200 } + resourceCounts: { food: 200 }, + trainingQueueBlocked: false, } ] }); diff --git a/source/ps/tests/test_CLogger.h b/source/ps/tests/test_CLogger.h index f5a355a9ce..3db7189fcf 100644 --- a/source/ps/tests/test_CLogger.h +++ b/source/ps/tests/test_CLogger.h @@ -36,7 +36,7 @@ public: void test_overflow() { - const int buflen = 512; + const int buflen = 1024; std::string msg0 (buflen-2, '*'); std::string msg1 (buflen-1, '*');