Skip to content

Commit

Permalink
fix up apiaryio#8
Browse files Browse the repository at this point in the history
  • Loading branch information
alikh31 committed May 8, 2014
1 parent 4a637cf commit 91cab26
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/StringUtility.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
namespace snowcrash {

// Check a character not to be an space of any kind
inline bool isSpace(const char i){
inline bool isSpace(const std::string::value_type i){
if(i == ' ' || i == '\t' || i == '\n' || i == '\v' || i == '\f' || i == '\r')
return true;
return false;
Expand Down
19 changes: 17 additions & 2 deletions vcbuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,24 @@ goto exit

:run-integration-test
if "%config%"=="Debug" (
echo Warning: Integration Tests has been configured to use 'Release' executables, please use 'vcbuild.bat' without 'debug' option.
goto exit
SET "Replacement= ENV['PATH'] = "../../build/Debug""
goto :run-cucumber
)
SET "Replacement= ENV['PATH'] = "../../build/Release""
goto :run-cucumber

:run-cucumber
SET "file=features\support\env.rb"
SET /a Line#ToSearch=9
(FOR /f "tokens=1*delims=:" %%a IN ('findstr /n "^" "%file%"') DO (
SET "Line=%%b"
IF %%a equ %Line#ToSearch% SET "Line=%Replacement%"
SETLOCAL ENABLEDELAYEDEXPANSION
ECHO(!Line!)
ENDLOCAL
)>"%file%.new"
MOVE "%file%.new" "%file%" >nul

bundle exec cucumber
goto exit

Expand Down

0 comments on commit 91cab26

Please sign in to comment.