diff --git a/src/tests.cpp b/src/tests.cpp deleted file mode 100644 index ad41f67..0000000 --- a/src/tests.cpp +++ /dev/null @@ -1,81 +0,0 @@ -#include "tests.h" -#include "parser.h" -#include -#include -#include -#include - -namespace YAML -{ - namespace Test - { - // runs all the tests on all data we have - void RunAll() - { - std::vector files; - files.push_back("tests/simple.yaml"); - files.push_back("tests/mixed.yaml"); - files.push_back("tests/scalars.yaml"); - files.push_back("tests/directives.yaml"); - - bool passed = true; - for(unsigned i=0;i - -namespace YAML -{ - namespace Test { - void RunAll(); - - bool Inout(const std::string& file); - } -} \ No newline at end of file diff --git a/tests/directives.yaml b/tests/directives.yaml deleted file mode 100644 index ff09846..0000000 --- a/tests/directives.yaml +++ /dev/null @@ -1,5 +0,0 @@ -%YAML 1.2 -%TAG ! !howdy ---- -- basic node -- ! yeah baby \ No newline at end of file diff --git a/tests/mixed.yaml b/tests/mixed.yaml deleted file mode 100644 index 88da1e7..0000000 --- a/tests/mixed.yaml +++ /dev/null @@ -1,32 +0,0 @@ -- the main thing is a sequence -- here's a key: value - and another: value -- let's inline: [1, 2, 3] - and an inline map: {key: value, 243: 101} -- and multiple indents: - - here's - - a - - list - and another: - - list - - of - - things -- maybe now: - let's: get - pretty: - deep: here - in: - the: nesting - just: to - confuse: - the: heck - out: - - of - - the: parser - if: - - we - - can - - do: that - what: do - you: think? - \ No newline at end of file diff --git a/tests/out.yaml b/tests/out.yaml deleted file mode 100644 index 75b1228..0000000 --- a/tests/out.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- "basic node" -- ! "yeah baby" - ---- -- "basic node" -- !> "yeah baby" - diff --git a/tests/scalars.yaml b/tests/scalars.yaml deleted file mode 100644 index ae0059a..0000000 --- a/tests/scalars.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- normal scalar, but - over several lines -- | - literal scalar - so we can draw ASCII: - - - - - | - | - ------ -- > - and a folded scalar... so we - can just keep writing various - things. And if we want to keep indentation: - - we just indent a little - see, this stays indented -- >- - Here's a folded scalar - that gets chomped. -- |- - And here's a literal scalar - that gets chomped. -- >2 - Here's a folded scalar - that starts with some indentation. -- ::vector -- ": - ()" -- Up, up, and away! -- -123 -- http://example.com/foo#bar -# Inside flow collection: -- [ ::vector, - ": - ()", - "Up, up and away!", - -123, - http://example.com/foo#bar ] \ No newline at end of file diff --git a/tests/simple.yaml b/tests/simple.yaml deleted file mode 100644 index 55b2d21..0000000 --- a/tests/simple.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -just a scalar ---- -and another scalar ---- -now an end document -... ---- -and now two -... -... ---- -and that's it \ No newline at end of file diff --git a/yaml-reader.vcproj b/yaml-reader.vcproj index 2d7df5f..d5d72e5 100644 --- a/yaml-reader.vcproj +++ b/yaml-reader.vcproj @@ -166,11 +166,11 @@ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > @@ -180,7 +180,7 @@ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" > @@ -190,23 +190,23 @@ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" > diff --git a/src/main.cpp b/yaml-reader/main.cpp similarity index 100% rename from src/main.cpp rename to yaml-reader/main.cpp diff --git a/yamlcpp.sln b/yamlcpp.sln index e582333..6a0f57f 100644 --- a/yamlcpp.sln +++ b/yamlcpp.sln @@ -2,6 +2,9 @@ Microsoft Visual Studio Solution File, Format Version 10.00 # Visual Studio 2008 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yaml-reader", "yaml-reader.vcproj", "{E8CC0D8A-D784-4A6B-B78B-ACEA13F9FB0B}" + ProjectSection(ProjectDependencies) = postProject + {3104AB4E-CD31-4F47-95E9-0E8D9374E15D} = {3104AB4E-CD31-4F47-95E9-0E8D9374E15D} + EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yamlcpp", "yamlcpp.vcproj", "{3104AB4E-CD31-4F47-95E9-0E8D9374E15D}" EndProject diff --git a/yamlcpp.vcproj b/yamlcpp.vcproj index 7bf8f63..2c9ed53 100644 --- a/yamlcpp.vcproj +++ b/yamlcpp.vcproj @@ -41,6 +41,7 @@