[llvm] r236754 - YAML: Enable the YAMLParser tests.
Alex Lorenz
arphaman at gmail.com
Thu May 7 11:08:49 PDT 2015
Author: arphaman
Date: Thu May 7 13:08:46 2015
New Revision: 236754
URL: http://llvm.org/viewvc/llvm-project?rev=236754&view=rev
Log:
YAML: Enable the YAMLParser tests.
This commit enables the tests located in test/YAMLParser directory.
Those tests were never actually enabled, as llvm-lit didn't pick up the
files with the 'data' extension. The commit renames those test files to files
with the 'test' extension so that llvm-lit would find them.
This commit also modifies yaml-bench so that it returns an error status
if an error occurred during parsing. It also adds the '-use-color'
command line option to yaml-bench (to make sure that file check matches
the error messages in the output stream).
This commit modifies some of the renamed tests so that they wouldn't
fail. It gets rid of XFAILs and uses the 'not' command instead for
some of the tests that have to fail during parsing. This commit
also adds some 'FIXME' comments to a couple of tests that are
supposed to fail but currently pass because of various bugs
in the implementation of the yaml parser.
Reviewers: Justin Bogner
Differential Revision: http://reviews.llvm.org/D9448
Added:
llvm/trunk/test/YAMLParser/bool.test
llvm/trunk/test/YAMLParser/construct-bool.test
llvm/trunk/test/YAMLParser/construct-custom.test
llvm/trunk/test/YAMLParser/construct-float.test
llvm/trunk/test/YAMLParser/construct-int.test
llvm/trunk/test/YAMLParser/construct-map.test
llvm/trunk/test/YAMLParser/construct-merge.test
llvm/trunk/test/YAMLParser/construct-null.test
llvm/trunk/test/YAMLParser/construct-omap.test
llvm/trunk/test/YAMLParser/construct-pairs.test
llvm/trunk/test/YAMLParser/construct-seq.test
llvm/trunk/test/YAMLParser/construct-set.test
llvm/trunk/test/YAMLParser/construct-str-ascii.test
llvm/trunk/test/YAMLParser/construct-str.test
llvm/trunk/test/YAMLParser/construct-timestamp.test
llvm/trunk/test/YAMLParser/construct-value.test
llvm/trunk/test/YAMLParser/duplicate-key.former-loader-error.test
llvm/trunk/test/YAMLParser/duplicate-mapping-key.former-loader-error.test
llvm/trunk/test/YAMLParser/duplicate-merge-key.former-loader-error.test
llvm/trunk/test/YAMLParser/duplicate-value-key.former-loader-error.test
llvm/trunk/test/YAMLParser/emit-block-scalar-in-simple-key-context-bug.test
llvm/trunk/test/YAMLParser/empty-document-bug.test
llvm/trunk/test/YAMLParser/float.test
llvm/trunk/test/YAMLParser/int.test
llvm/trunk/test/YAMLParser/invalid-single-quote-bug.test
llvm/trunk/test/YAMLParser/merge.test
llvm/trunk/test/YAMLParser/more-floats.test
llvm/trunk/test/YAMLParser/negative-float-bug.test
llvm/trunk/test/YAMLParser/null.test
llvm/trunk/test/YAMLParser/resolver.test
llvm/trunk/test/YAMLParser/run-parser-crash-bug.test
llvm/trunk/test/YAMLParser/scan-document-end-bug.test
llvm/trunk/test/YAMLParser/scan-line-break-bug.test
llvm/trunk/test/YAMLParser/single-dot-is-not-float-bug.test
llvm/trunk/test/YAMLParser/sloppy-indentation.test
llvm/trunk/test/YAMLParser/spec-02-01.test
llvm/trunk/test/YAMLParser/spec-02-02.test
llvm/trunk/test/YAMLParser/spec-02-03.test
llvm/trunk/test/YAMLParser/spec-02-04.test
llvm/trunk/test/YAMLParser/spec-02-05.test
llvm/trunk/test/YAMLParser/spec-02-06.test
llvm/trunk/test/YAMLParser/spec-02-07.test
llvm/trunk/test/YAMLParser/spec-02-08.test
llvm/trunk/test/YAMLParser/spec-02-09.test
llvm/trunk/test/YAMLParser/spec-02-10.test
llvm/trunk/test/YAMLParser/spec-02-11.test
llvm/trunk/test/YAMLParser/spec-02-12.test
llvm/trunk/test/YAMLParser/spec-02-13.test
llvm/trunk/test/YAMLParser/spec-02-14.test
llvm/trunk/test/YAMLParser/spec-02-15.test
llvm/trunk/test/YAMLParser/spec-02-16.test
llvm/trunk/test/YAMLParser/spec-02-17.test
llvm/trunk/test/YAMLParser/spec-02-18.test
llvm/trunk/test/YAMLParser/spec-02-19.test
llvm/trunk/test/YAMLParser/spec-02-20.test
llvm/trunk/test/YAMLParser/spec-02-21.test
llvm/trunk/test/YAMLParser/spec-02-22.test
llvm/trunk/test/YAMLParser/spec-02-23.test
llvm/trunk/test/YAMLParser/spec-02-24.test
llvm/trunk/test/YAMLParser/spec-02-25.test
llvm/trunk/test/YAMLParser/spec-02-26.test
llvm/trunk/test/YAMLParser/spec-02-27.test
llvm/trunk/test/YAMLParser/spec-02-28.test
llvm/trunk/test/YAMLParser/spec-05-01-utf8.test
llvm/trunk/test/YAMLParser/spec-05-02-utf8.test
llvm/trunk/test/YAMLParser/spec-05-03.test
llvm/trunk/test/YAMLParser/spec-05-04.test
llvm/trunk/test/YAMLParser/spec-05-05.test
llvm/trunk/test/YAMLParser/spec-05-06.test
llvm/trunk/test/YAMLParser/spec-05-07.test
llvm/trunk/test/YAMLParser/spec-05-08.test
llvm/trunk/test/YAMLParser/spec-05-09.test
llvm/trunk/test/YAMLParser/spec-05-10.test
llvm/trunk/test/YAMLParser/spec-05-11.test
llvm/trunk/test/YAMLParser/spec-05-12.test
llvm/trunk/test/YAMLParser/spec-05-13.test
llvm/trunk/test/YAMLParser/spec-05-14.test
llvm/trunk/test/YAMLParser/spec-05-15.test
llvm/trunk/test/YAMLParser/spec-06-01.test
llvm/trunk/test/YAMLParser/spec-06-02.test
llvm/trunk/test/YAMLParser/spec-06-03.test
llvm/trunk/test/YAMLParser/spec-06-04.test
llvm/trunk/test/YAMLParser/spec-06-05.test
llvm/trunk/test/YAMLParser/spec-06-06.test
llvm/trunk/test/YAMLParser/spec-06-07.test
llvm/trunk/test/YAMLParser/spec-06-08.test
llvm/trunk/test/YAMLParser/spec-07-01.test
llvm/trunk/test/YAMLParser/spec-07-02.test
llvm/trunk/test/YAMLParser/spec-07-03.test
llvm/trunk/test/YAMLParser/spec-07-04.test
llvm/trunk/test/YAMLParser/spec-07-05.test
llvm/trunk/test/YAMLParser/spec-07-06.test
llvm/trunk/test/YAMLParser/spec-07-07a.test
llvm/trunk/test/YAMLParser/spec-07-07b.test
llvm/trunk/test/YAMLParser/spec-07-08.test
llvm/trunk/test/YAMLParser/spec-07-09.test
llvm/trunk/test/YAMLParser/spec-07-10.test
llvm/trunk/test/YAMLParser/spec-07-11.test
llvm/trunk/test/YAMLParser/spec-07-12a.test
llvm/trunk/test/YAMLParser/spec-07-12b.test
llvm/trunk/test/YAMLParser/spec-07-13.test
llvm/trunk/test/YAMLParser/spec-08-01.test
llvm/trunk/test/YAMLParser/spec-08-02.test
llvm/trunk/test/YAMLParser/spec-08-03.test
llvm/trunk/test/YAMLParser/spec-08-04.test
llvm/trunk/test/YAMLParser/spec-08-05.test
llvm/trunk/test/YAMLParser/spec-08-06.test
llvm/trunk/test/YAMLParser/spec-08-07.test
llvm/trunk/test/YAMLParser/spec-08-08.test
llvm/trunk/test/YAMLParser/spec-08-09.test
llvm/trunk/test/YAMLParser/spec-08-10.test
llvm/trunk/test/YAMLParser/spec-08-11.test
llvm/trunk/test/YAMLParser/spec-08-12.test
llvm/trunk/test/YAMLParser/spec-08-13.test
llvm/trunk/test/YAMLParser/spec-08-14.test
llvm/trunk/test/YAMLParser/spec-08-15.test
llvm/trunk/test/YAMLParser/spec-09-01.test
llvm/trunk/test/YAMLParser/spec-09-02.test
llvm/trunk/test/YAMLParser/spec-09-03.test
llvm/trunk/test/YAMLParser/spec-09-04.test
llvm/trunk/test/YAMLParser/spec-09-05.test
llvm/trunk/test/YAMLParser/spec-09-06.test
llvm/trunk/test/YAMLParser/spec-09-07.test
llvm/trunk/test/YAMLParser/spec-09-08.test
llvm/trunk/test/YAMLParser/spec-09-09.test
llvm/trunk/test/YAMLParser/spec-09-10.test
llvm/trunk/test/YAMLParser/spec-09-11.test
llvm/trunk/test/YAMLParser/spec-09-12.test
llvm/trunk/test/YAMLParser/spec-09-13.test
llvm/trunk/test/YAMLParser/spec-09-14.test
llvm/trunk/test/YAMLParser/spec-09-15.test
llvm/trunk/test/YAMLParser/spec-09-16.test
llvm/trunk/test/YAMLParser/spec-09-17.test
llvm/trunk/test/YAMLParser/spec-09-18.test
llvm/trunk/test/YAMLParser/spec-09-19.test
llvm/trunk/test/YAMLParser/spec-09-20.test
llvm/trunk/test/YAMLParser/spec-09-21.test
llvm/trunk/test/YAMLParser/spec-09-22.test
llvm/trunk/test/YAMLParser/spec-09-23.test
llvm/trunk/test/YAMLParser/spec-09-24.test
llvm/trunk/test/YAMLParser/spec-09-25.test
llvm/trunk/test/YAMLParser/spec-09-26.test
llvm/trunk/test/YAMLParser/spec-09-27.test
llvm/trunk/test/YAMLParser/spec-09-28.test
llvm/trunk/test/YAMLParser/spec-09-29.test
llvm/trunk/test/YAMLParser/spec-09-30.test
llvm/trunk/test/YAMLParser/spec-09-31.test
llvm/trunk/test/YAMLParser/spec-09-32.test
llvm/trunk/test/YAMLParser/spec-09-33.test
llvm/trunk/test/YAMLParser/spec-10-01.test
llvm/trunk/test/YAMLParser/spec-10-02.test
llvm/trunk/test/YAMLParser/spec-10-03.test
llvm/trunk/test/YAMLParser/spec-10-04.test
llvm/trunk/test/YAMLParser/spec-10-05.test
llvm/trunk/test/YAMLParser/spec-10-06.test
llvm/trunk/test/YAMLParser/spec-10-07.test
llvm/trunk/test/YAMLParser/spec-10-08.test
llvm/trunk/test/YAMLParser/spec-10-09.test
llvm/trunk/test/YAMLParser/spec-10-10.test
llvm/trunk/test/YAMLParser/spec-10-11.test
llvm/trunk/test/YAMLParser/spec-10-12.test
llvm/trunk/test/YAMLParser/spec-10-13.test
llvm/trunk/test/YAMLParser/spec-10-14.test
llvm/trunk/test/YAMLParser/spec-10-15.test
llvm/trunk/test/YAMLParser/str.test
llvm/trunk/test/YAMLParser/timestamp-bugs.test
llvm/trunk/test/YAMLParser/timestamp.test
llvm/trunk/test/YAMLParser/utf8-implicit.test
llvm/trunk/test/YAMLParser/utf8.test
llvm/trunk/test/YAMLParser/value.test
llvm/trunk/test/YAMLParser/yaml.test
Removed:
llvm/trunk/test/YAMLParser/bool.data
llvm/trunk/test/YAMLParser/construct-bool.data
llvm/trunk/test/YAMLParser/construct-custom.data
llvm/trunk/test/YAMLParser/construct-float.data
llvm/trunk/test/YAMLParser/construct-int.data
llvm/trunk/test/YAMLParser/construct-map.data
llvm/trunk/test/YAMLParser/construct-merge.data
llvm/trunk/test/YAMLParser/construct-null.data
llvm/trunk/test/YAMLParser/construct-omap.data
llvm/trunk/test/YAMLParser/construct-pairs.data
llvm/trunk/test/YAMLParser/construct-seq.data
llvm/trunk/test/YAMLParser/construct-set.data
llvm/trunk/test/YAMLParser/construct-str-ascii.data
llvm/trunk/test/YAMLParser/construct-str.data
llvm/trunk/test/YAMLParser/construct-timestamp.data
llvm/trunk/test/YAMLParser/construct-value.data
llvm/trunk/test/YAMLParser/duplicate-key.former-loader-error.data
llvm/trunk/test/YAMLParser/duplicate-mapping-key.former-loader-error.data
llvm/trunk/test/YAMLParser/duplicate-merge-key.former-loader-error.data
llvm/trunk/test/YAMLParser/duplicate-value-key.former-loader-error.data
llvm/trunk/test/YAMLParser/emit-block-scalar-in-simple-key-context-bug.data
llvm/trunk/test/YAMLParser/empty-document-bug.data
llvm/trunk/test/YAMLParser/float.data
llvm/trunk/test/YAMLParser/int.data
llvm/trunk/test/YAMLParser/invalid-single-quote-bug.data
llvm/trunk/test/YAMLParser/merge.data
llvm/trunk/test/YAMLParser/more-floats.data
llvm/trunk/test/YAMLParser/negative-float-bug.data
llvm/trunk/test/YAMLParser/null.data
llvm/trunk/test/YAMLParser/resolver.data
llvm/trunk/test/YAMLParser/run-parser-crash-bug.data
llvm/trunk/test/YAMLParser/scan-document-end-bug.data
llvm/trunk/test/YAMLParser/scan-line-break-bug.data
llvm/trunk/test/YAMLParser/single-dot-is-not-float-bug.data
llvm/trunk/test/YAMLParser/sloppy-indentation.data
llvm/trunk/test/YAMLParser/spec-02-01.data
llvm/trunk/test/YAMLParser/spec-02-02.data
llvm/trunk/test/YAMLParser/spec-02-03.data
llvm/trunk/test/YAMLParser/spec-02-04.data
llvm/trunk/test/YAMLParser/spec-02-05.data
llvm/trunk/test/YAMLParser/spec-02-06.data
llvm/trunk/test/YAMLParser/spec-02-07.data
llvm/trunk/test/YAMLParser/spec-02-08.data
llvm/trunk/test/YAMLParser/spec-02-09.data
llvm/trunk/test/YAMLParser/spec-02-10.data
llvm/trunk/test/YAMLParser/spec-02-11.data
llvm/trunk/test/YAMLParser/spec-02-12.data
llvm/trunk/test/YAMLParser/spec-02-13.data
llvm/trunk/test/YAMLParser/spec-02-14.data
llvm/trunk/test/YAMLParser/spec-02-15.data
llvm/trunk/test/YAMLParser/spec-02-16.data
llvm/trunk/test/YAMLParser/spec-02-17.data
llvm/trunk/test/YAMLParser/spec-02-18.data
llvm/trunk/test/YAMLParser/spec-02-19.data
llvm/trunk/test/YAMLParser/spec-02-20.data
llvm/trunk/test/YAMLParser/spec-02-21.data
llvm/trunk/test/YAMLParser/spec-02-22.data
llvm/trunk/test/YAMLParser/spec-02-23.data
llvm/trunk/test/YAMLParser/spec-02-24.data
llvm/trunk/test/YAMLParser/spec-02-25.data
llvm/trunk/test/YAMLParser/spec-02-26.data
llvm/trunk/test/YAMLParser/spec-02-27.data
llvm/trunk/test/YAMLParser/spec-02-28.data
llvm/trunk/test/YAMLParser/spec-05-01-utf8.data
llvm/trunk/test/YAMLParser/spec-05-02-utf8.data
llvm/trunk/test/YAMLParser/spec-05-03.data
llvm/trunk/test/YAMLParser/spec-05-04.data
llvm/trunk/test/YAMLParser/spec-05-05.data
llvm/trunk/test/YAMLParser/spec-05-06.data
llvm/trunk/test/YAMLParser/spec-05-07.data
llvm/trunk/test/YAMLParser/spec-05-08.data
llvm/trunk/test/YAMLParser/spec-05-09.data
llvm/trunk/test/YAMLParser/spec-05-10.data
llvm/trunk/test/YAMLParser/spec-05-11.data
llvm/trunk/test/YAMLParser/spec-05-12.data
llvm/trunk/test/YAMLParser/spec-05-13.data
llvm/trunk/test/YAMLParser/spec-05-14.data
llvm/trunk/test/YAMLParser/spec-05-15.data
llvm/trunk/test/YAMLParser/spec-06-01.data
llvm/trunk/test/YAMLParser/spec-06-02.data
llvm/trunk/test/YAMLParser/spec-06-03.data
llvm/trunk/test/YAMLParser/spec-06-04.data
llvm/trunk/test/YAMLParser/spec-06-05.data
llvm/trunk/test/YAMLParser/spec-06-06.data
llvm/trunk/test/YAMLParser/spec-06-07.data
llvm/trunk/test/YAMLParser/spec-06-08.data
llvm/trunk/test/YAMLParser/spec-07-01.data
llvm/trunk/test/YAMLParser/spec-07-02.data
llvm/trunk/test/YAMLParser/spec-07-03.data
llvm/trunk/test/YAMLParser/spec-07-04.data
llvm/trunk/test/YAMLParser/spec-07-05.data
llvm/trunk/test/YAMLParser/spec-07-06.data
llvm/trunk/test/YAMLParser/spec-07-07a.data
llvm/trunk/test/YAMLParser/spec-07-07b.data
llvm/trunk/test/YAMLParser/spec-07-08.data
llvm/trunk/test/YAMLParser/spec-07-09.data
llvm/trunk/test/YAMLParser/spec-07-10.data
llvm/trunk/test/YAMLParser/spec-07-11.data
llvm/trunk/test/YAMLParser/spec-07-12a.data
llvm/trunk/test/YAMLParser/spec-07-12b.data
llvm/trunk/test/YAMLParser/spec-07-13.data
llvm/trunk/test/YAMLParser/spec-08-01.data
llvm/trunk/test/YAMLParser/spec-08-02.data
llvm/trunk/test/YAMLParser/spec-08-03.data
llvm/trunk/test/YAMLParser/spec-08-04.data
llvm/trunk/test/YAMLParser/spec-08-05.data
llvm/trunk/test/YAMLParser/spec-08-06.data
llvm/trunk/test/YAMLParser/spec-08-07.data
llvm/trunk/test/YAMLParser/spec-08-08.data
llvm/trunk/test/YAMLParser/spec-08-09.data
llvm/trunk/test/YAMLParser/spec-08-10.data
llvm/trunk/test/YAMLParser/spec-08-11.data
llvm/trunk/test/YAMLParser/spec-08-12.data
llvm/trunk/test/YAMLParser/spec-08-13.data
llvm/trunk/test/YAMLParser/spec-08-14.data
llvm/trunk/test/YAMLParser/spec-08-15.data
llvm/trunk/test/YAMLParser/spec-09-01.data
llvm/trunk/test/YAMLParser/spec-09-02.data
llvm/trunk/test/YAMLParser/spec-09-03.data
llvm/trunk/test/YAMLParser/spec-09-04.data
llvm/trunk/test/YAMLParser/spec-09-05.data
llvm/trunk/test/YAMLParser/spec-09-06.data
llvm/trunk/test/YAMLParser/spec-09-07.data
llvm/trunk/test/YAMLParser/spec-09-08.data
llvm/trunk/test/YAMLParser/spec-09-09.data
llvm/trunk/test/YAMLParser/spec-09-10.data
llvm/trunk/test/YAMLParser/spec-09-11.data
llvm/trunk/test/YAMLParser/spec-09-12.data
llvm/trunk/test/YAMLParser/spec-09-13.data
llvm/trunk/test/YAMLParser/spec-09-14.data
llvm/trunk/test/YAMLParser/spec-09-15.data
llvm/trunk/test/YAMLParser/spec-09-16.data
llvm/trunk/test/YAMLParser/spec-09-17.data
llvm/trunk/test/YAMLParser/spec-09-18.data
llvm/trunk/test/YAMLParser/spec-09-19.data
llvm/trunk/test/YAMLParser/spec-09-20.data
llvm/trunk/test/YAMLParser/spec-09-21.data
llvm/trunk/test/YAMLParser/spec-09-22.data
llvm/trunk/test/YAMLParser/spec-09-23.data
llvm/trunk/test/YAMLParser/spec-09-24.data
llvm/trunk/test/YAMLParser/spec-09-25.data
llvm/trunk/test/YAMLParser/spec-09-26.data
llvm/trunk/test/YAMLParser/spec-09-27.data
llvm/trunk/test/YAMLParser/spec-09-28.data
llvm/trunk/test/YAMLParser/spec-09-29.data
llvm/trunk/test/YAMLParser/spec-09-30.data
llvm/trunk/test/YAMLParser/spec-09-31.data
llvm/trunk/test/YAMLParser/spec-09-32.data
llvm/trunk/test/YAMLParser/spec-09-33.data
llvm/trunk/test/YAMLParser/spec-10-01.data
llvm/trunk/test/YAMLParser/spec-10-02.data
llvm/trunk/test/YAMLParser/spec-10-03.data
llvm/trunk/test/YAMLParser/spec-10-04.data
llvm/trunk/test/YAMLParser/spec-10-05.data
llvm/trunk/test/YAMLParser/spec-10-06.data
llvm/trunk/test/YAMLParser/spec-10-07.data
llvm/trunk/test/YAMLParser/spec-10-08.data
llvm/trunk/test/YAMLParser/spec-10-09.data
llvm/trunk/test/YAMLParser/spec-10-10.data
llvm/trunk/test/YAMLParser/spec-10-11.data
llvm/trunk/test/YAMLParser/spec-10-12.data
llvm/trunk/test/YAMLParser/spec-10-13.data
llvm/trunk/test/YAMLParser/spec-10-14.data
llvm/trunk/test/YAMLParser/spec-10-15.data
llvm/trunk/test/YAMLParser/str.data
llvm/trunk/test/YAMLParser/timestamp-bugs.data
llvm/trunk/test/YAMLParser/timestamp.data
llvm/trunk/test/YAMLParser/utf8-implicit.data
llvm/trunk/test/YAMLParser/utf8.data
llvm/trunk/test/YAMLParser/value.data
llvm/trunk/test/YAMLParser/yaml.data
Modified:
llvm/trunk/include/llvm/Support/YAMLParser.h
llvm/trunk/lib/Support/YAMLParser.cpp
llvm/trunk/utils/yaml-bench/YAMLBench.cpp
Modified: llvm/trunk/include/llvm/Support/YAMLParser.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/YAMLParser.h?rev=236754&r1=236753&r2=236754&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/YAMLParser.h (original)
+++ llvm/trunk/include/llvm/Support/YAMLParser.h Thu May 7 13:08:46 2015
@@ -76,9 +76,9 @@ std::string escape(StringRef Input);
class Stream {
public:
/// \brief This keeps a reference to the string referenced by \p Input.
- Stream(StringRef Input, SourceMgr &);
+ Stream(StringRef Input, SourceMgr &, bool ShowColors = true);
- Stream(MemoryBufferRef InputBuffer, SourceMgr &);
+ Stream(MemoryBufferRef InputBuffer, SourceMgr &, bool ShowColors = true);
~Stream();
document_iterator begin();
Modified: llvm/trunk/lib/Support/YAMLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/YAMLParser.cpp?rev=236754&r1=236753&r2=236754&view=diff
==============================================================================
--- llvm/trunk/lib/Support/YAMLParser.cpp (original)
+++ llvm/trunk/lib/Support/YAMLParser.cpp Thu May 7 13:08:46 2015
@@ -260,8 +260,8 @@ namespace yaml {
/// @brief Scans YAML tokens from a MemoryBuffer.
class Scanner {
public:
- Scanner(StringRef Input, SourceMgr &SM);
- Scanner(MemoryBufferRef Buffer, SourceMgr &SM_);
+ Scanner(StringRef Input, SourceMgr &SM, bool ShowColors = true);
+ Scanner(MemoryBufferRef Buffer, SourceMgr &SM_, bool ShowColors = true);
/// @brief Parse the next token and return it without popping it.
Token &peekNext();
@@ -271,7 +271,7 @@ public:
void printError(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Message,
ArrayRef<SMRange> Ranges = None) {
- SM.PrintMessage(Loc, Kind, Message, Ranges);
+ SM.PrintMessage(Loc, Kind, Message, Ranges, /* FixIts= */ None, ShowColors);
}
void setError(const Twine &Message, StringRef::iterator Position) {
@@ -505,6 +505,9 @@ private:
/// @brief True if an error has occurred.
bool Failed;
+ /// @brief Should colors be used when printing out the diagnostic messages?
+ bool ShowColors;
+
/// @brief Queue of tokens. This is required to queue up tokens while looking
/// for the end of a simple key. And for cases where a single character
/// can produce multiple tokens (e.g. BlockEnd).
@@ -706,11 +709,13 @@ std::string yaml::escape(StringRef Input
return EscapedInput;
}
-Scanner::Scanner(StringRef Input, SourceMgr &sm) : SM(sm) {
+Scanner::Scanner(StringRef Input, SourceMgr &sm, bool ShowColors)
+ : SM(sm), ShowColors(ShowColors) {
init(MemoryBufferRef(Input, "YAML"));
}
-Scanner::Scanner(MemoryBufferRef Buffer, SourceMgr &SM_) : SM(SM_) {
+Scanner::Scanner(MemoryBufferRef Buffer, SourceMgr &SM_, bool ShowColors)
+ : SM(SM_), ShowColors(ShowColors) {
init(Buffer);
}
@@ -1525,11 +1530,11 @@ bool Scanner::fetchMoreTokens() {
return false;
}
-Stream::Stream(StringRef Input, SourceMgr &SM)
- : scanner(new Scanner(Input, SM)), CurrentDoc() {}
+Stream::Stream(StringRef Input, SourceMgr &SM, bool ShowColors)
+ : scanner(new Scanner(Input, SM, ShowColors)), CurrentDoc() {}
-Stream::Stream(MemoryBufferRef InputBuffer, SourceMgr &SM)
- : scanner(new Scanner(InputBuffer, SM)), CurrentDoc() {}
+Stream::Stream(MemoryBufferRef InputBuffer, SourceMgr &SM, bool ShowColors)
+ : scanner(new Scanner(InputBuffer, SM, ShowColors)), CurrentDoc() {}
Stream::~Stream() {}
Removed: llvm/trunk/test/YAMLParser/bool.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/bool.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/bool.data (original)
+++ llvm/trunk/test/YAMLParser/bool.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- yes
-- NO
-- True
-- on
Added: llvm/trunk/test/YAMLParser/bool.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/bool.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/bool.test (added)
+++ llvm/trunk/test/YAMLParser/bool.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+- yes
+- NO
+- True
+- on
Removed: llvm/trunk/test/YAMLParser/construct-bool.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-bool.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-bool.data (original)
+++ llvm/trunk/test/YAMLParser/construct-bool.data (removed)
@@ -1,11 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-canonical: yes
-answer: NO
-logical: True
-option: on
-
-
-but:
- y: is a string
- n: is a string
Added: llvm/trunk/test/YAMLParser/construct-bool.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-bool.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-bool.test (added)
+++ llvm/trunk/test/YAMLParser/construct-bool.test Thu May 7 13:08:46 2015
@@ -0,0 +1,11 @@
+# RUN: yaml-bench -canonical %s
+
+canonical: yes
+answer: NO
+logical: True
+option: on
+
+
+but:
+ y: is a string
+ n: is a string
Removed: llvm/trunk/test/YAMLParser/construct-custom.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-custom.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-custom.data (original)
+++ llvm/trunk/test/YAMLParser/construct-custom.data (removed)
@@ -1,28 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-- !tag1
- x: 1
-- !tag1
- x: 1
- 'y': 2
- z: 3
-- !tag2
- 10
-- !tag2
- =: 10
- 'y': 20
- z: 30
-- !tag3
- x: 1
-- !tag3
- x: 1
- 'y': 2
- z: 3
-- !tag3
- =: 1
- 'y': 2
- z: 3
-- !foo
- my-parameter: foo
- my-another-parameter: [1,2,3]
Added: llvm/trunk/test/YAMLParser/construct-custom.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-custom.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-custom.test (added)
+++ llvm/trunk/test/YAMLParser/construct-custom.test Thu May 7 13:08:46 2015
@@ -0,0 +1,28 @@
+# RUN: yaml-bench -canonical %s
+
+---
+- !tag1
+ x: 1
+- !tag1
+ x: 1
+ 'y': 2
+ z: 3
+- !tag2
+ 10
+- !tag2
+ =: 10
+ 'y': 20
+ z: 30
+- !tag3
+ x: 1
+- !tag3
+ x: 1
+ 'y': 2
+ z: 3
+- !tag3
+ =: 1
+ 'y': 2
+ z: 3
+- !foo
+ my-parameter: foo
+ my-another-parameter: [1,2,3]
Removed: llvm/trunk/test/YAMLParser/construct-float.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-float.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-float.data (original)
+++ llvm/trunk/test/YAMLParser/construct-float.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-canonical: 6.8523015e+5
-exponential: 685.230_15e+03
-fixed: 685_230.15
-sexagesimal: 190:20:30.15
-negative infinity: -.inf
-not a number: .NaN
Added: llvm/trunk/test/YAMLParser/construct-float.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-float.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-float.test (added)
+++ llvm/trunk/test/YAMLParser/construct-float.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+canonical: 6.8523015e+5
+exponential: 685.230_15e+03
+fixed: 685_230.15
+sexagesimal: 190:20:30.15
+negative infinity: -.inf
+not a number: .NaN
Removed: llvm/trunk/test/YAMLParser/construct-int.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-int.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-int.data (original)
+++ llvm/trunk/test/YAMLParser/construct-int.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-canonical: 685230
-decimal: +685_230
-octal: 02472256
-hexadecimal: 0x_0A_74_AE
-binary: 0b1010_0111_0100_1010_1110
-sexagesimal: 190:20:30
Added: llvm/trunk/test/YAMLParser/construct-int.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-int.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-int.test (added)
+++ llvm/trunk/test/YAMLParser/construct-int.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+canonical: 685230
+decimal: +685_230
+octal: 02472256
+hexadecimal: 0x_0A_74_AE
+binary: 0b1010_0111_0100_1010_1110
+sexagesimal: 190:20:30
Removed: llvm/trunk/test/YAMLParser/construct-map.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-map.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-map.data (original)
+++ llvm/trunk/test/YAMLParser/construct-map.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Unordered set of key: value pairs.
-Block style: !!map
- Clark : Evans
- Brian : Ingerson
- Oren : Ben-Kiki
-Flow style: !!map { Clark: Evans, Brian: Ingerson, Oren: Ben-Kiki }
Added: llvm/trunk/test/YAMLParser/construct-map.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-map.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-map.test (added)
+++ llvm/trunk/test/YAMLParser/construct-map.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+# Unordered set of key: value pairs.
+Block style: !!map
+ Clark : Evans
+ Brian : Ingerson
+ Oren : Ben-Kiki
+Flow style: !!map { Clark: Evans, Brian: Ingerson, Oren: Ben-Kiki }
Removed: llvm/trunk/test/YAMLParser/construct-merge.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-merge.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-merge.data (original)
+++ llvm/trunk/test/YAMLParser/construct-merge.data (removed)
@@ -1,29 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-- &CENTER { x: 1, 'y': 2 }
-- &LEFT { x: 0, 'y': 2 }
-- &BIG { r: 10 }
-- &SMALL { r: 1 }
-
-# All the following maps are equal:
-
-- # Explicit keys
- x: 1
- 'y': 2
- r: 10
- label: center/big
-
-- # Merge one map
- << : *CENTER
- r: 10
- label: center/big
-
-- # Merge multiple maps
- << : [ *CENTER, *BIG ]
- label: center/big
-
-- # Override
- << : [ *BIG, *LEFT, *SMALL ]
- x: 1
- label: center/big
Added: llvm/trunk/test/YAMLParser/construct-merge.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-merge.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-merge.test (added)
+++ llvm/trunk/test/YAMLParser/construct-merge.test Thu May 7 13:08:46 2015
@@ -0,0 +1,29 @@
+# RUN: yaml-bench -canonical %s
+
+---
+- &CENTER { x: 1, 'y': 2 }
+- &LEFT { x: 0, 'y': 2 }
+- &BIG { r: 10 }
+- &SMALL { r: 1 }
+
+# All the following maps are equal:
+
+- # Explicit keys
+ x: 1
+ 'y': 2
+ r: 10
+ label: center/big
+
+- # Merge one map
+ << : *CENTER
+ r: 10
+ label: center/big
+
+- # Merge multiple maps
+ << : [ *CENTER, *BIG ]
+ label: center/big
+
+- # Override
+ << : [ *BIG, *LEFT, *SMALL ]
+ x: 1
+ label: center/big
Removed: llvm/trunk/test/YAMLParser/construct-null.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-null.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-null.data (original)
+++ llvm/trunk/test/YAMLParser/construct-null.data (removed)
@@ -1,20 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# A document may be null.
----
----
-# This mapping has four keys,
-# one has a value.
-empty:
-canonical: ~
-english: null
-~: null key
----
-# This sequence has five
-# entries, two have values.
-sparse:
- - ~
- - 2nd entry
- -
- - 4th entry
- - Null
Added: llvm/trunk/test/YAMLParser/construct-null.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-null.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-null.test (added)
+++ llvm/trunk/test/YAMLParser/construct-null.test Thu May 7 13:08:46 2015
@@ -0,0 +1,20 @@
+# RUN: yaml-bench -canonical %s
+
+# A document may be null.
+---
+---
+# This mapping has four keys,
+# one has a value.
+empty:
+canonical: ~
+english: null
+~: null key
+---
+# This sequence has five
+# entries, two have values.
+sparse:
+ - ~
+ - 2nd entry
+ -
+ - 4th entry
+ - Null
Removed: llvm/trunk/test/YAMLParser/construct-omap.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-omap.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-omap.data (original)
+++ llvm/trunk/test/YAMLParser/construct-omap.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Explicitly typed ordered map (dictionary).
-Bestiary: !!omap
- - aardvark: African pig-like ant eater. Ugly.
- - anteater: South-American ant eater. Two species.
- - anaconda: South-American constrictor snake. Scaly.
- # Etc.
-# Flow style
-Numbers: !!omap [ one: 1, two: 2, three : 3 ]
Added: llvm/trunk/test/YAMLParser/construct-omap.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-omap.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-omap.test (added)
+++ llvm/trunk/test/YAMLParser/construct-omap.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+# Explicitly typed ordered map (dictionary).
+Bestiary: !!omap
+ - aardvark: African pig-like ant eater. Ugly.
+ - anteater: South-American ant eater. Two species.
+ - anaconda: South-American constrictor snake. Scaly.
+ # Etc.
+# Flow style
+Numbers: !!omap [ one: 1, two: 2, three : 3 ]
Removed: llvm/trunk/test/YAMLParser/construct-pairs.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-pairs.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-pairs.data (original)
+++ llvm/trunk/test/YAMLParser/construct-pairs.data (removed)
@@ -1,9 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Explicitly typed pairs.
-Block tasks: !!pairs
- - meeting: with team.
- - meeting: with boss.
- - break: lunch.
- - meeting: with client.
-Flow tasks: !!pairs [ meeting: with team, meeting: with boss ]
Added: llvm/trunk/test/YAMLParser/construct-pairs.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-pairs.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-pairs.test (added)
+++ llvm/trunk/test/YAMLParser/construct-pairs.test Thu May 7 13:08:46 2015
@@ -0,0 +1,9 @@
+# RUN: yaml-bench -canonical %s
+
+# Explicitly typed pairs.
+Block tasks: !!pairs
+ - meeting: with team.
+ - meeting: with boss.
+ - break: lunch.
+ - meeting: with client.
+Flow tasks: !!pairs [ meeting: with team, meeting: with boss ]
Removed: llvm/trunk/test/YAMLParser/construct-seq.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-seq.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-seq.data (original)
+++ llvm/trunk/test/YAMLParser/construct-seq.data (removed)
@@ -1,17 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Ordered sequence of nodes
-Block style: !!seq
-- Mercury # Rotates - no light/dark sides.
-- Venus # Deadliest. Aptly named.
-- Earth # Mostly dirt.
-- Mars # Seems empty.
-- Jupiter # The king.
-- Saturn # Pretty.
-- Uranus # Where the sun hardly shines.
-- Neptune # Boring. No rings.
-- Pluto # You call this a planet?
-Flow style: !!seq [ Mercury, Venus, Earth, Mars, # Rocks
- Jupiter, Saturn, Uranus, Neptune, # Gas
- Pluto ] # Overrated
-
Added: llvm/trunk/test/YAMLParser/construct-seq.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-seq.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-seq.test (added)
+++ llvm/trunk/test/YAMLParser/construct-seq.test Thu May 7 13:08:46 2015
@@ -0,0 +1,17 @@
+# RUN: yaml-bench -canonical %s
+
+# Ordered sequence of nodes
+Block style: !!seq
+- Mercury # Rotates - no light/dark sides.
+- Venus # Deadliest. Aptly named.
+- Earth # Mostly dirt.
+- Mars # Seems empty.
+- Jupiter # The king.
+- Saturn # Pretty.
+- Uranus # Where the sun hardly shines.
+- Neptune # Boring. No rings.
+- Pluto # You call this a planet?
+Flow style: !!seq [ Mercury, Venus, Earth, Mars, # Rocks
+ Jupiter, Saturn, Uranus, Neptune, # Gas
+ Pluto ] # Overrated
+
Removed: llvm/trunk/test/YAMLParser/construct-set.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-set.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-set.data (original)
+++ llvm/trunk/test/YAMLParser/construct-set.data (removed)
@@ -1,9 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Explicitly typed set.
-baseball players: !!set
- ? Mark McGwire
- ? Sammy Sosa
- ? Ken Griffey
-# Flow style
-baseball teams: !!set { Boston Red Sox, Detroit Tigers, New York Yankees }
Added: llvm/trunk/test/YAMLParser/construct-set.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-set.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-set.test (added)
+++ llvm/trunk/test/YAMLParser/construct-set.test Thu May 7 13:08:46 2015
@@ -0,0 +1,9 @@
+# RUN: yaml-bench -canonical %s
+
+# Explicitly typed set.
+baseball players: !!set
+ ? Mark McGwire
+ ? Sammy Sosa
+ ? Ken Griffey
+# Flow style
+baseball teams: !!set { Boston Red Sox, Detroit Tigers, New York Yankees }
Removed: llvm/trunk/test/YAMLParser/construct-str-ascii.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-str-ascii.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-str-ascii.data (original)
+++ llvm/trunk/test/YAMLParser/construct-str-ascii.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
---- !!str "ascii string"
Added: llvm/trunk/test/YAMLParser/construct-str-ascii.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-str-ascii.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-str-ascii.test (added)
+++ llvm/trunk/test/YAMLParser/construct-str-ascii.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+--- !!str "ascii string"
Removed: llvm/trunk/test/YAMLParser/construct-str.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-str.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-str.data (original)
+++ llvm/trunk/test/YAMLParser/construct-str.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-string: abcd
Added: llvm/trunk/test/YAMLParser/construct-str.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-str.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-str.test (added)
+++ llvm/trunk/test/YAMLParser/construct-str.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+string: abcd
Removed: llvm/trunk/test/YAMLParser/construct-timestamp.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-timestamp.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-timestamp.data (original)
+++ llvm/trunk/test/YAMLParser/construct-timestamp.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-canonical: 2001-12-15T02:59:43.1Z
-valid iso8601: 2001-12-14t21:59:43.10-05:00
-space separated: 2001-12-14 21:59:43.10 -5
-no time zone (Z): 2001-12-15 2:59:43.10
-date (00:00:00Z): 2002-12-14
Added: llvm/trunk/test/YAMLParser/construct-timestamp.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-timestamp.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-timestamp.test (added)
+++ llvm/trunk/test/YAMLParser/construct-timestamp.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: yaml-bench -canonical %s
+
+canonical: 2001-12-15T02:59:43.1Z
+valid iso8601: 2001-12-14t21:59:43.10-05:00
+space separated: 2001-12-14 21:59:43.10 -5
+no time zone (Z): 2001-12-15 2:59:43.10
+date (00:00:00Z): 2002-12-14
Removed: llvm/trunk/test/YAMLParser/construct-value.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-value.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-value.data (original)
+++ llvm/trunk/test/YAMLParser/construct-value.data (removed)
@@ -1,12 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
---- # Old schema
-link with:
- - library1.dll
- - library2.dll
---- # New schema
-link with:
- - = : library1.dll
- version: 1.2
- - = : library2.dll
- version: 2.3
Added: llvm/trunk/test/YAMLParser/construct-value.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/construct-value.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/construct-value.test (added)
+++ llvm/trunk/test/YAMLParser/construct-value.test Thu May 7 13:08:46 2015
@@ -0,0 +1,12 @@
+# RUN: yaml-bench -canonical %s
+
+--- # Old schema
+link with:
+ - library1.dll
+ - library2.dll
+--- # New schema
+link with:
+ - = : library1.dll
+ version: 1.2
+ - = : library2.dll
+ version: 2.3
Removed: llvm/trunk/test/YAMLParser/duplicate-key.former-loader-error.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/duplicate-key.former-loader-error.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/duplicate-key.former-loader-error.data (original)
+++ llvm/trunk/test/YAMLParser/duplicate-key.former-loader-error.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-foo: bar
-foo: baz
Added: llvm/trunk/test/YAMLParser/duplicate-key.former-loader-error.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/duplicate-key.former-loader-error.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/duplicate-key.former-loader-error.test (added)
+++ llvm/trunk/test/YAMLParser/duplicate-key.former-loader-error.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+---
+foo: bar
+foo: baz
Removed: llvm/trunk/test/YAMLParser/duplicate-mapping-key.former-loader-error.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/duplicate-mapping-key.former-loader-error.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/duplicate-mapping-key.former-loader-error.data (original)
+++ llvm/trunk/test/YAMLParser/duplicate-mapping-key.former-loader-error.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-&anchor foo:
- foo: bar
- *anchor: duplicate key
- baz: bat
- *anchor: duplicate key
Added: llvm/trunk/test/YAMLParser/duplicate-mapping-key.former-loader-error.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/duplicate-mapping-key.former-loader-error.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/duplicate-mapping-key.former-loader-error.test (added)
+++ llvm/trunk/test/YAMLParser/duplicate-mapping-key.former-loader-error.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+---
+&anchor foo:
+ foo: bar
+ *anchor: duplicate key
+ baz: bat
+ *anchor: duplicate key
Removed: llvm/trunk/test/YAMLParser/duplicate-merge-key.former-loader-error.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/duplicate-merge-key.former-loader-error.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/duplicate-merge-key.former-loader-error.data (original)
+++ llvm/trunk/test/YAMLParser/duplicate-merge-key.former-loader-error.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-<<: {x: 1, y: 2}
-foo: bar
-<<: {z: 3, t: 4}
Added: llvm/trunk/test/YAMLParser/duplicate-merge-key.former-loader-error.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/duplicate-merge-key.former-loader-error.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/duplicate-merge-key.former-loader-error.test (added)
+++ llvm/trunk/test/YAMLParser/duplicate-merge-key.former-loader-error.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+---
+<<: {x: 1, y: 2}
+foo: bar
+<<: {z: 3, t: 4}
Removed: llvm/trunk/test/YAMLParser/duplicate-value-key.former-loader-error.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/duplicate-value-key.former-loader-error.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/duplicate-value-key.former-loader-error.data (original)
+++ llvm/trunk/test/YAMLParser/duplicate-value-key.former-loader-error.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-=: 1
-foo: bar
-=: 2
Added: llvm/trunk/test/YAMLParser/duplicate-value-key.former-loader-error.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/duplicate-value-key.former-loader-error.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/duplicate-value-key.former-loader-error.test (added)
+++ llvm/trunk/test/YAMLParser/duplicate-value-key.former-loader-error.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+---
+=: 1
+foo: bar
+=: 2
Removed: llvm/trunk/test/YAMLParser/emit-block-scalar-in-simple-key-context-bug.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/emit-block-scalar-in-simple-key-context-bug.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/emit-block-scalar-in-simple-key-context-bug.data (original)
+++ llvm/trunk/test/YAMLParser/emit-block-scalar-in-simple-key-context-bug.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-? |-
- foo
-: |-
- bar
Added: llvm/trunk/test/YAMLParser/emit-block-scalar-in-simple-key-context-bug.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/emit-block-scalar-in-simple-key-context-bug.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/emit-block-scalar-in-simple-key-context-bug.test (added)
+++ llvm/trunk/test/YAMLParser/emit-block-scalar-in-simple-key-context-bug.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+? |-
+ foo
+: |-
+ bar
Removed: llvm/trunk/test/YAMLParser/empty-document-bug.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/empty-document-bug.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/empty-document-bug.data (original)
+++ llvm/trunk/test/YAMLParser/empty-document-bug.data (removed)
@@ -1,2 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
Added: llvm/trunk/test/YAMLParser/empty-document-bug.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/empty-document-bug.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/empty-document-bug.test (added)
+++ llvm/trunk/test/YAMLParser/empty-document-bug.test Thu May 7 13:08:46 2015
@@ -0,0 +1,2 @@
+# RUN: yaml-bench -canonical %s
+
Removed: llvm/trunk/test/YAMLParser/float.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/float.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/float.data (original)
+++ llvm/trunk/test/YAMLParser/float.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- 6.8523015e+5
-- 685.230_15e+03
-- 685_230.15
-- 190:20:30.15
-- -.inf
-- .NaN
Added: llvm/trunk/test/YAMLParser/float.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/float.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/float.test (added)
+++ llvm/trunk/test/YAMLParser/float.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+- 6.8523015e+5
+- 685.230_15e+03
+- 685_230.15
+- 190:20:30.15
+- -.inf
+- .NaN
Removed: llvm/trunk/test/YAMLParser/int.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/int.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/int.data (original)
+++ llvm/trunk/test/YAMLParser/int.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- 685230
-- +685_230
-- 02472256
-- 0x_0A_74_AE
-- 0b1010_0111_0100_1010_1110
-- 190:20:30
Added: llvm/trunk/test/YAMLParser/int.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/int.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/int.test (added)
+++ llvm/trunk/test/YAMLParser/int.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+- 685230
+- +685_230
+- 02472256
+- 0x_0A_74_AE
+- 0b1010_0111_0100_1010_1110
+- 190:20:30
Removed: llvm/trunk/test/YAMLParser/invalid-single-quote-bug.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/invalid-single-quote-bug.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/invalid-single-quote-bug.data (original)
+++ llvm/trunk/test/YAMLParser/invalid-single-quote-bug.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- "foo 'bar'"
-- "foo\n'bar'"
Added: llvm/trunk/test/YAMLParser/invalid-single-quote-bug.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/invalid-single-quote-bug.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/invalid-single-quote-bug.test (added)
+++ llvm/trunk/test/YAMLParser/invalid-single-quote-bug.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+- "foo 'bar'"
+- "foo\n'bar'"
Removed: llvm/trunk/test/YAMLParser/merge.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/merge.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/merge.data (original)
+++ llvm/trunk/test/YAMLParser/merge.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- <<
Added: llvm/trunk/test/YAMLParser/merge.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/merge.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/merge.test (added)
+++ llvm/trunk/test/YAMLParser/merge.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+- <<
Removed: llvm/trunk/test/YAMLParser/more-floats.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/more-floats.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/more-floats.data (original)
+++ llvm/trunk/test/YAMLParser/more-floats.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-[0.0, +1.0, -1.0, +.inf, -.inf, .nan, .nan]
Added: llvm/trunk/test/YAMLParser/more-floats.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/more-floats.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/more-floats.test (added)
+++ llvm/trunk/test/YAMLParser/more-floats.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+[0.0, +1.0, -1.0, +.inf, -.inf, .nan, .nan]
Removed: llvm/trunk/test/YAMLParser/negative-float-bug.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/negative-float-bug.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/negative-float-bug.data (original)
+++ llvm/trunk/test/YAMLParser/negative-float-bug.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
--1.0
Added: llvm/trunk/test/YAMLParser/negative-float-bug.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/negative-float-bug.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/negative-float-bug.test (added)
+++ llvm/trunk/test/YAMLParser/negative-float-bug.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+-1.0
Removed: llvm/trunk/test/YAMLParser/null.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/null.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/null.data (original)
+++ llvm/trunk/test/YAMLParser/null.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
--
-- ~
-- null
Added: llvm/trunk/test/YAMLParser/null.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/null.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/null.test (added)
+++ llvm/trunk/test/YAMLParser/null.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+-
+- ~
+- null
Removed: llvm/trunk/test/YAMLParser/resolver.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/resolver.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/resolver.data (original)
+++ llvm/trunk/test/YAMLParser/resolver.data (removed)
@@ -1,32 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-"this scalar should be selected"
----
-key11: !foo
- key12:
- is: [selected]
- key22:
- key13: [not, selected]
- key23: [not, selected]
- key32:
- key31: [not, selected]
- key32: [not, selected]
- key33: {not: selected}
-key21: !bar
- - not selected
- - selected
- - not selected
-key31: !baz
- key12:
- key13:
- key14: {selected}
- key23:
- key14: [not, selected]
- key33:
- key14: {selected}
- key24: {not: selected}
- key22:
- - key14: {selected}
- key24: {not: selected}
- - key14: {selected}
Added: llvm/trunk/test/YAMLParser/resolver.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/resolver.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/resolver.test (added)
+++ llvm/trunk/test/YAMLParser/resolver.test Thu May 7 13:08:46 2015
@@ -0,0 +1,32 @@
+# RUN: yaml-bench -canonical %s
+
+---
+"this scalar should be selected"
+---
+key11: !foo
+ key12:
+ is: [selected]
+ key22:
+ key13: [not, selected]
+ key23: [not, selected]
+ key32:
+ key31: [not, selected]
+ key32: [not, selected]
+ key33: {not: selected}
+key21: !bar
+ - not selected
+ - selected
+ - not selected
+key31: !baz
+ key12:
+ key13:
+ key14: {selected}
+ key23:
+ key14: [not, selected]
+ key33:
+ key14: {selected}
+ key24: {not: selected}
+ key22:
+ - key14: {selected}
+ key24: {not: selected}
+ - key14: {selected}
Removed: llvm/trunk/test/YAMLParser/run-parser-crash-bug.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/run-parser-crash-bug.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/run-parser-crash-bug.data (original)
+++ llvm/trunk/test/YAMLParser/run-parser-crash-bug.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-- Harry Potter and the Prisoner of Azkaban
-- Harry Potter and the Goblet of Fire
-- Harry Potter and the Order of the Phoenix
----
-- Memoirs Found in a Bathtub
-- Snow Crash
-- Ghost World
Added: llvm/trunk/test/YAMLParser/run-parser-crash-bug.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/run-parser-crash-bug.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/run-parser-crash-bug.test (added)
+++ llvm/trunk/test/YAMLParser/run-parser-crash-bug.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+---
+- Harry Potter and the Prisoner of Azkaban
+- Harry Potter and the Goblet of Fire
+- Harry Potter and the Order of the Phoenix
+---
+- Memoirs Found in a Bathtub
+- Snow Crash
+- Ghost World
Removed: llvm/trunk/test/YAMLParser/scan-document-end-bug.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/scan-document-end-bug.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/scan-document-end-bug.data (original)
+++ llvm/trunk/test/YAMLParser/scan-document-end-bug.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Ticket #4
----
-...
Added: llvm/trunk/test/YAMLParser/scan-document-end-bug.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/scan-document-end-bug.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/scan-document-end-bug.test (added)
+++ llvm/trunk/test/YAMLParser/scan-document-end-bug.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+# Ticket #4
+---
+...
Removed: llvm/trunk/test/YAMLParser/scan-line-break-bug.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/scan-line-break-bug.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/scan-line-break-bug.data (original)
+++ llvm/trunk/test/YAMLParser/scan-line-break-bug.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-foo:
- bar
- baz
Added: llvm/trunk/test/YAMLParser/scan-line-break-bug.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/scan-line-break-bug.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/scan-line-break-bug.test (added)
+++ llvm/trunk/test/YAMLParser/scan-line-break-bug.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+foo:
+ bar
+ baz
Removed: llvm/trunk/test/YAMLParser/single-dot-is-not-float-bug.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/single-dot-is-not-float-bug.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/single-dot-is-not-float-bug.data (original)
+++ llvm/trunk/test/YAMLParser/single-dot-is-not-float-bug.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-.
Added: llvm/trunk/test/YAMLParser/single-dot-is-not-float-bug.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/single-dot-is-not-float-bug.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/single-dot-is-not-float-bug.test (added)
+++ llvm/trunk/test/YAMLParser/single-dot-is-not-float-bug.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+.
Removed: llvm/trunk/test/YAMLParser/sloppy-indentation.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/sloppy-indentation.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/sloppy-indentation.data (original)
+++ llvm/trunk/test/YAMLParser/sloppy-indentation.data (removed)
@@ -1,19 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-in the block context:
- indentation should be kept: {
- but in the flow context: [
-it may be violated]
-}
----
-the parser does not require scalars
-to be indented with at least one space
-...
----
-"the parser does not require scalars
-to be indented with at least one space"
----
-foo:
- bar: 'quoted scalars
-may not adhere indentation'
Added: llvm/trunk/test/YAMLParser/sloppy-indentation.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/sloppy-indentation.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/sloppy-indentation.test (added)
+++ llvm/trunk/test/YAMLParser/sloppy-indentation.test Thu May 7 13:08:46 2015
@@ -0,0 +1,19 @@
+# RUN: yaml-bench -canonical %s
+
+---
+in the block context:
+ indentation should be kept: {
+ but in the flow context: [
+it may be violated]
+}
+---
+the parser does not require scalars
+to be indented with at least one space
+...
+---
+"the parser does not require scalars
+to be indented with at least one space"
+---
+foo:
+ bar: 'quoted scalars
+may not adhere indentation'
Removed: llvm/trunk/test/YAMLParser/spec-02-01.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-01.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-01.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-01.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- Mark McGwire
-- Sammy Sosa
-- Ken Griffey
Added: llvm/trunk/test/YAMLParser/spec-02-01.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-01.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-01.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-01.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+- Mark McGwire
+- Sammy Sosa
+- Ken Griffey
Removed: llvm/trunk/test/YAMLParser/spec-02-02.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-02.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-02.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-02.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-hr: 65 # Home runs
-avg: 0.278 # Batting average
-rbi: 147 # Runs Batted In
Added: llvm/trunk/test/YAMLParser/spec-02-02.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-02.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-02.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-02.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+hr: 65 # Home runs
+avg: 0.278 # Batting average
+rbi: 147 # Runs Batted In
Removed: llvm/trunk/test/YAMLParser/spec-02-03.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-03.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-03.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-03.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-american:
- - Boston Red Sox
- - Detroit Tigers
- - New York Yankees
-national:
- - New York Mets
- - Chicago Cubs
- - Atlanta Braves
Added: llvm/trunk/test/YAMLParser/spec-02-03.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-03.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-03.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-03.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+american:
+ - Boston Red Sox
+ - Detroit Tigers
+ - New York Yankees
+national:
+ - New York Mets
+ - Chicago Cubs
+ - Atlanta Braves
Removed: llvm/trunk/test/YAMLParser/spec-02-04.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-04.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-04.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-04.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
--
- name: Mark McGwire
- hr: 65
- avg: 0.278
--
- name: Sammy Sosa
- hr: 63
- avg: 0.288
Added: llvm/trunk/test/YAMLParser/spec-02-04.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-04.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-04.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-04.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+-
+ name: Mark McGwire
+ hr: 65
+ avg: 0.278
+-
+ name: Sammy Sosa
+ hr: 63
+ avg: 0.288
Removed: llvm/trunk/test/YAMLParser/spec-02-05.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-05.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-05.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-05.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- [name , hr, avg ]
-- [Mark McGwire, 65, 0.278]
-- [Sammy Sosa , 63, 0.288]
Added: llvm/trunk/test/YAMLParser/spec-02-05.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-05.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-05.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-05.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+- [name , hr, avg ]
+- [Mark McGwire, 65, 0.278]
+- [Sammy Sosa , 63, 0.288]
Removed: llvm/trunk/test/YAMLParser/spec-02-06.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-06.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-06.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-06.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-Mark McGwire: {hr: 65, avg: 0.278}
-Sammy Sosa: {
- hr: 63,
- avg: 0.288
- }
Added: llvm/trunk/test/YAMLParser/spec-02-06.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-06.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-06.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-06.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: yaml-bench -canonical %s
+
+Mark McGwire: {hr: 65, avg: 0.278}
+Sammy Sosa: {
+ hr: 63,
+ avg: 0.288
+ }
Removed: llvm/trunk/test/YAMLParser/spec-02-07.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-07.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-07.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-07.data (removed)
@@ -1,12 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Ranking of 1998 home runs
----
-- Mark McGwire
-- Sammy Sosa
-- Ken Griffey
-
-# Team ranking
----
-- Chicago Cubs
-- St Louis Cardinals
Added: llvm/trunk/test/YAMLParser/spec-02-07.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-07.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-07.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-07.test Thu May 7 13:08:46 2015
@@ -0,0 +1,12 @@
+# RUN: yaml-bench -canonical %s
+
+# Ranking of 1998 home runs
+---
+- Mark McGwire
+- Sammy Sosa
+- Ken Griffey
+
+# Team ranking
+---
+- Chicago Cubs
+- St Louis Cardinals
Removed: llvm/trunk/test/YAMLParser/spec-02-08.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-08.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-08.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-08.data (removed)
@@ -1,12 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-time: 20:03:20
-player: Sammy Sosa
-action: strike (miss)
-...
----
-time: 20:03:47
-player: Sammy Sosa
-action: grand slam
-...
Added: llvm/trunk/test/YAMLParser/spec-02-08.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-08.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-08.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-08.test Thu May 7 13:08:46 2015
@@ -0,0 +1,12 @@
+# RUN: yaml-bench -canonical %s
+
+---
+time: 20:03:20
+player: Sammy Sosa
+action: strike (miss)
+...
+---
+time: 20:03:47
+player: Sammy Sosa
+action: grand slam
+...
Removed: llvm/trunk/test/YAMLParser/spec-02-09.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-09.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-09.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-09.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-hr: # 1998 hr ranking
- - Mark McGwire
- - Sammy Sosa
-rbi:
- # 1998 rbi ranking
- - Sammy Sosa
- - Ken Griffey
Added: llvm/trunk/test/YAMLParser/spec-02-09.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-09.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-09.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-09.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+---
+hr: # 1998 hr ranking
+ - Mark McGwire
+ - Sammy Sosa
+rbi:
+ # 1998 rbi ranking
+ - Sammy Sosa
+ - Ken Griffey
Removed: llvm/trunk/test/YAMLParser/spec-02-10.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-10.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-10.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-10.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-hr:
- - Mark McGwire
- # Following node labeled SS
- - &SS Sammy Sosa
-rbi:
- - *SS # Subsequent occurrence
- - Ken Griffey
Added: llvm/trunk/test/YAMLParser/spec-02-10.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-10.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-10.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-10.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+---
+hr:
+ - Mark McGwire
+ # Following node labeled SS
+ - &SS Sammy Sosa
+rbi:
+ - *SS # Subsequent occurrence
+ - Ken Griffey
Removed: llvm/trunk/test/YAMLParser/spec-02-11.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-11.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-11.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-11.data (removed)
@@ -1,11 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-? - Detroit Tigers
- - Chicago cubs
-:
- - 2001-07-23
-
-? [ New York Yankees,
- Atlanta Braves ]
-: [ 2001-07-02, 2001-08-12,
- 2001-08-14 ]
Added: llvm/trunk/test/YAMLParser/spec-02-11.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-11.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-11.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-11.test Thu May 7 13:08:46 2015
@@ -0,0 +1,11 @@
+# RUN: yaml-bench -canonical %s
+
+? - Detroit Tigers
+ - Chicago cubs
+:
+ - 2001-07-23
+
+? [ New York Yankees,
+ Atlanta Braves ]
+: [ 2001-07-02, 2001-08-12,
+ 2001-08-14 ]
Removed: llvm/trunk/test/YAMLParser/spec-02-12.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-12.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-12.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-12.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-# products purchased
-- item : Super Hoop
- quantity: 1
-- item : Basketball
- quantity: 4
-- item : Big Shoes
- quantity: 1
Added: llvm/trunk/test/YAMLParser/spec-02-12.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-12.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-12.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-12.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+---
+# products purchased
+- item : Super Hoop
+ quantity: 1
+- item : Basketball
+ quantity: 4
+- item : Big Shoes
+ quantity: 1
Removed: llvm/trunk/test/YAMLParser/spec-02-13.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-13.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-13.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-13.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# ASCII Art
---- |
- \//||\/||
- // || ||__
Added: llvm/trunk/test/YAMLParser/spec-02-13.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-13.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-13.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-13.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+# ASCII Art
+--- |
+ \//||\/||
+ // || ||__
Removed: llvm/trunk/test/YAMLParser/spec-02-14.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-14.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-14.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-14.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
- Mark McGwire's
- year was crippled
- by a knee injury.
Added: llvm/trunk/test/YAMLParser/spec-02-14.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-14.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-14.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-14.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+---
+ Mark McGwire's
+ year was crippled
+ by a knee injury.
Removed: llvm/trunk/test/YAMLParser/spec-02-15.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-15.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-15.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-15.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
->
- Sammy Sosa completed another
- fine season with great stats.
-
- 63 Home Runs
- 0.288 Batting Average
-
- What a year!
Added: llvm/trunk/test/YAMLParser/spec-02-15.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-15.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-15.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-15.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+>
+ Sammy Sosa completed another
+ fine season with great stats.
+
+ 63 Home Runs
+ 0.288 Batting Average
+
+ What a year!
Removed: llvm/trunk/test/YAMLParser/spec-02-16.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-16.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-16.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-16.data (removed)
@@ -1,9 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-name: Mark McGwire
-accomplishment: >
- Mark set a major league
- home run record in 1998.
-stats: |
- 65 Home Runs
- 0.278 Batting Average
Added: llvm/trunk/test/YAMLParser/spec-02-16.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-16.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-16.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-16.test Thu May 7 13:08:46 2015
@@ -0,0 +1,9 @@
+# RUN: yaml-bench -canonical %s
+
+name: Mark McGwire
+accomplishment: >
+ Mark set a major league
+ home run record in 1998.
+stats: |
+ 65 Home Runs
+ 0.278 Batting Average
Removed: llvm/trunk/test/YAMLParser/spec-02-17.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-17.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-17.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-17.data (removed)
@@ -1,16 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-unicode: "Sosa did fine.\u263A"
-control: "\b1998\t1999\t2000\n"
-hexesc: "\x13\x10 is \r\n"
-
-single: '"Howdy!" he cried.'
-quoted: ' # not a ''comment''.'
-tie-fighter: '|\-*-/|'
-
-# CHECK: !!str "Sosa did fine.\u263A"
-# CHECK: !!str "\b1998\t1999\t2000\n"
-# CHECK: !!str "\x13\x10 is \r\n"
-# CHECK: !!str "\"Howdy!\" he cried."
-# CHECK: !!str " # not a 'comment'."
-# CHECK: !!str "|\\-*-/|"
Added: llvm/trunk/test/YAMLParser/spec-02-17.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-17.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-17.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-17.test Thu May 7 13:08:46 2015
@@ -0,0 +1,16 @@
+# RUN: yaml-bench -canonical %s
+
+unicode: "Sosa did fine.\u263A"
+control: "\b1998\t1999\t2000\n"
+hexesc: "\x13\x10 is \r\n"
+
+single: '"Howdy!" he cried.'
+quoted: ' # not a ''comment''.'
+tie-fighter: '|\-*-/|'
+
+# CHECK: !!str "Sosa did fine.\u263A"
+# CHECK: !!str "\b1998\t1999\t2000\n"
+# CHECK: !!str "\x13\x10 is \r\n"
+# CHECK: !!str "\"Howdy!\" he cried."
+# CHECK: !!str " # not a 'comment'."
+# CHECK: !!str "|\\-*-/|"
Removed: llvm/trunk/test/YAMLParser/spec-02-18.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-18.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-18.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-18.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-plain:
- This unquoted scalar
- spans many lines.
-
-quoted: "So does this
- quoted scalar.\n"
Added: llvm/trunk/test/YAMLParser/spec-02-18.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-18.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-18.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-18.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+plain:
+ This unquoted scalar
+ spans many lines.
+
+quoted: "So does this
+ quoted scalar.\n"
Removed: llvm/trunk/test/YAMLParser/spec-02-19.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-19.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-19.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-19.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-canonical: 12345
-decimal: +12,345
-sexagesimal: 3:25:45
-octal: 014
-hexadecimal: 0xC
Added: llvm/trunk/test/YAMLParser/spec-02-19.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-19.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-19.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-19.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: yaml-bench -canonical %s
+
+canonical: 12345
+decimal: +12,345
+sexagesimal: 3:25:45
+octal: 014
+hexadecimal: 0xC
Removed: llvm/trunk/test/YAMLParser/spec-02-20.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-20.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-20.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-20.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-canonical: 1.23015e+3
-exponential: 12.3015e+02
-sexagesimal: 20:30.15
-fixed: 1,230.15
-negative infinity: -.inf
-not a number: .NaN
Added: llvm/trunk/test/YAMLParser/spec-02-20.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-20.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-20.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-20.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+canonical: 1.23015e+3
+exponential: 12.3015e+02
+sexagesimal: 20:30.15
+fixed: 1,230.15
+negative infinity: -.inf
+not a number: .NaN
Removed: llvm/trunk/test/YAMLParser/spec-02-21.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-21.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-21.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-21.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-null: ~
-true: y
-false: n
-string: '12345'
Added: llvm/trunk/test/YAMLParser/spec-02-21.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-21.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-21.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-21.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+null: ~
+true: y
+false: n
+string: '12345'
Removed: llvm/trunk/test/YAMLParser/spec-02-22.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-22.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-22.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-22.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-canonical: 2001-12-15T02:59:43.1Z
-iso8601: 2001-12-14t21:59:43.10-05:00
-spaced: 2001-12-14 21:59:43.10 -5
-date: 2002-12-14
Added: llvm/trunk/test/YAMLParser/spec-02-22.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-22.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-22.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-22.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+canonical: 2001-12-15T02:59:43.1Z
+iso8601: 2001-12-14t21:59:43.10-05:00
+spaced: 2001-12-14 21:59:43.10 -5
+date: 2002-12-14
Removed: llvm/trunk/test/YAMLParser/spec-02-23.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-23.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-23.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-23.data (removed)
@@ -1,15 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-not-date: !!str 2002-04-28
-
-picture: !!binary |
- R0lGODlhDAAMAIQAAP//9/X
- 17unp5WZmZgAAAOfn515eXv
- Pz7Y6OjuDg4J+fn5OTk6enp
- 56enmleECcgggoBADs=
-
-application specific tag: !something |
- The semantics of the tag
- above may be different for
- different documents.
Added: llvm/trunk/test/YAMLParser/spec-02-23.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-23.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-23.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-23.test Thu May 7 13:08:46 2015
@@ -0,0 +1,15 @@
+# RUN: yaml-bench -canonical %s
+
+---
+not-date: !!str 2002-04-28
+
+picture: !!binary |
+ R0lGODlhDAAMAIQAAP//9/X
+ 17unp5WZmZgAAAOfn515eXv
+ Pz7Y6OjuDg4J+fn5OTk6enp
+ 56enmleECcgggoBADs=
+
+application specific tag: !something |
+ The semantics of the tag
+ above may be different for
+ different documents.
Removed: llvm/trunk/test/YAMLParser/spec-02-24.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-24.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-24.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-24.data (removed)
@@ -1,21 +0,0 @@
-# RUN: yaml-bench -canonical %s | FileCheck %s
-
-%TAG ! tag:clarkevans.com,2002:
---- !shape
- # Use the ! handle for presenting
- # tag:clarkevans.com,2002:circle
-- !circle
- center: &ORIGIN {x: 73, y: 129}
- radius: 7
-- !line
- start: *ORIGIN
- finish: { x: 89, y: 102 }
-- !label
- start: *ORIGIN
- color: 0xFFEEBB
- text: Pretty vector drawing.
-
-#CHECK: !<tag:clarkevans.com,2002:shape>
-#CHECK: !<tag:clarkevans.com,2002:circle>
-#CHECK: !<tag:clarkevans.com,2002:line>
-#CHECK: !<tag:clarkevans.com,2002:label>
Added: llvm/trunk/test/YAMLParser/spec-02-24.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-24.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-24.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-24.test Thu May 7 13:08:46 2015
@@ -0,0 +1,21 @@
+# RUN: yaml-bench -canonical %s | FileCheck %s
+
+%TAG ! tag:clarkevans.com,2002:
+--- !shape
+ # Use the ! handle for presenting
+ # tag:clarkevans.com,2002:circle
+- !circle
+ center: &ORIGIN {x: 73, y: 129}
+ radius: 7
+- !line
+ start: *ORIGIN
+ finish: { x: 89, y: 102 }
+- !label
+ start: *ORIGIN
+ color: 0xFFEEBB
+ text: Pretty vector drawing.
+
+#CHECK: !<tag:clarkevans.com,2002:shape>
+#CHECK: !<tag:clarkevans.com,2002:circle>
+#CHECK: !<tag:clarkevans.com,2002:line>
+#CHECK: !<tag:clarkevans.com,2002:label>
Removed: llvm/trunk/test/YAMLParser/spec-02-25.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-25.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-25.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-25.data (removed)
@@ -1,9 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# sets are represented as a
-# mapping where each key is
-# associated with the empty string
---- !!set
-? Mark McGwire
-? Sammy Sosa
-? Ken Griff
Added: llvm/trunk/test/YAMLParser/spec-02-25.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-25.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-25.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-25.test Thu May 7 13:08:46 2015
@@ -0,0 +1,9 @@
+# RUN: yaml-bench -canonical %s
+
+# sets are represented as a
+# mapping where each key is
+# associated with the empty string
+--- !!set
+? Mark McGwire
+? Sammy Sosa
+? Ken Griff
Removed: llvm/trunk/test/YAMLParser/spec-02-26.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-26.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-26.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-26.data (removed)
@@ -1,9 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# ordered maps are represented as
-# a sequence of mappings, with
-# each mapping having one key
---- !!omap
-- Mark McGwire: 65
-- Sammy Sosa: 63
-- Ken Griffy: 58
Added: llvm/trunk/test/YAMLParser/spec-02-26.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-26.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-26.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-26.test Thu May 7 13:08:46 2015
@@ -0,0 +1,9 @@
+# RUN: yaml-bench -canonical %s
+
+# ordered maps are represented as
+# a sequence of mappings, with
+# each mapping having one key
+--- !!omap
+- Mark McGwire: 65
+- Sammy Sosa: 63
+- Ken Griffy: 58
Removed: llvm/trunk/test/YAMLParser/spec-02-27.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-27.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-27.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-27.data (removed)
@@ -1,31 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
---- !<tag:clarkevans.com,2002:invoice>
-invoice: 34843
-date : 2001-01-23
-bill-to: &id001
- given : Chris
- family : Dumars
- address:
- lines: |
- 458 Walkman Dr.
- Suite #292
- city : Royal Oak
- state : MI
- postal : 48046
-ship-to: *id001
-product:
- - sku : BL394D
- quantity : 4
- description : Basketball
- price : 450.00
- - sku : BL4438H
- quantity : 1
- description : Super Hoop
- price : 2392.00
-tax : 251.42
-total: 4443.52
-comments:
- Late afternoon is best.
- Backup contact is Nancy
- Billsmer @ 338-4338.
Added: llvm/trunk/test/YAMLParser/spec-02-27.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-27.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-27.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-27.test Thu May 7 13:08:46 2015
@@ -0,0 +1,31 @@
+# RUN: yaml-bench -canonical %s
+
+--- !<tag:clarkevans.com,2002:invoice>
+invoice: 34843
+date : 2001-01-23
+bill-to: &id001
+ given : Chris
+ family : Dumars
+ address:
+ lines: |
+ 458 Walkman Dr.
+ Suite #292
+ city : Royal Oak
+ state : MI
+ postal : 48046
+ship-to: *id001
+product:
+ - sku : BL394D
+ quantity : 4
+ description : Basketball
+ price : 450.00
+ - sku : BL4438H
+ quantity : 1
+ description : Super Hoop
+ price : 2392.00
+tax : 251.42
+total: 4443.52
+comments:
+ Late afternoon is best.
+ Backup contact is Nancy
+ Billsmer @ 338-4338.
Removed: llvm/trunk/test/YAMLParser/spec-02-28.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-28.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-28.data (original)
+++ llvm/trunk/test/YAMLParser/spec-02-28.data (removed)
@@ -1,28 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-Time: 2001-11-23 15:01:42 -5
-User: ed
-Warning:
- This is an error message
- for the log file
----
-Time: 2001-11-23 15:02:31 -5
-User: ed
-Warning:
- A slightly different error
- message.
----
-Date: 2001-11-23 15:03:17 -5
-User: ed
-Fatal:
- Unknown variable "bar"
-Stack:
- - file: TopClass.py
- line: 23
- code: |
- x = MoreObject("345\n")
- - file: MoreClass.py
- line: 58
- code: |-
- foo = bar
Added: llvm/trunk/test/YAMLParser/spec-02-28.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-02-28.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-02-28.test (added)
+++ llvm/trunk/test/YAMLParser/spec-02-28.test Thu May 7 13:08:46 2015
@@ -0,0 +1,28 @@
+# RUN: yaml-bench -canonical %s
+
+---
+Time: 2001-11-23 15:01:42 -5
+User: ed
+Warning:
+ This is an error message
+ for the log file
+---
+Time: 2001-11-23 15:02:31 -5
+User: ed
+Warning:
+ A slightly different error
+ message.
+---
+Date: 2001-11-23 15:03:17 -5
+User: ed
+Fatal:
+ Unknown variable "bar"
+Stack:
+ - file: TopClass.py
+ line: 23
+ code: |
+ x = MoreObject("345\n")
+ - file: MoreClass.py
+ line: 58
+ code: |-
+ foo = bar
Removed: llvm/trunk/test/YAMLParser/spec-05-01-utf8.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-01-utf8.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-01-utf8.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-01-utf8.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Comment only.
Added: llvm/trunk/test/YAMLParser/spec-05-01-utf8.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-01-utf8.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-01-utf8.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-01-utf8.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+# Comment only.
Removed: llvm/trunk/test/YAMLParser/spec-05-02-utf8.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-02-utf8.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-02-utf8.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-02-utf8.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
-
-# Invalid use of BOM
-# inside a
-# document.
-
-# CHECK: error
Added: llvm/trunk/test/YAMLParser/spec-05-02-utf8.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-02-utf8.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-02-utf8.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-02-utf8.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
+
+# Invalid use of BOM
+# inside a
+# document.
+
+# CHECK: error
Removed: llvm/trunk/test/YAMLParser/spec-05-03.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-03.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-03.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-03.data (removed)
@@ -1,9 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-sequence:
-- one
-- two
-mapping:
- ? sky
- : blue
- ? sea : green
Added: llvm/trunk/test/YAMLParser/spec-05-03.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-03.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-03.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-03.test Thu May 7 13:08:46 2015
@@ -0,0 +1,9 @@
+# RUN: yaml-bench -canonical %s
+
+sequence:
+- one
+- two
+mapping:
+ ? sky
+ : blue
+ ? sea : green
Removed: llvm/trunk/test/YAMLParser/spec-05-04.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-04.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-04.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-04.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-sequence: [ one, two, ]
-mapping: { sky: blue, sea: green }
Added: llvm/trunk/test/YAMLParser/spec-05-04.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-04.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-04.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-04.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+sequence: [ one, two, ]
+mapping: { sky: blue, sea: green }
Removed: llvm/trunk/test/YAMLParser/spec-05-05.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-05.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-05.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-05.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Comment only.
Added: llvm/trunk/test/YAMLParser/spec-05-05.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-05.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-05.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-05.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+# Comment only.
Removed: llvm/trunk/test/YAMLParser/spec-05-06.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-06.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-06.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-06.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-anchored: !local &anchor value
-alias: *anchor
Added: llvm/trunk/test/YAMLParser/spec-05-06.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-06.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-06.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-06.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+anchored: !local &anchor value
+alias: *anchor
Removed: llvm/trunk/test/YAMLParser/spec-05-07.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-07.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-07.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-07.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-literal: |
- text
-folded: >
- text
Added: llvm/trunk/test/YAMLParser/spec-05-07.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-07.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-07.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-07.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+literal: |
+ text
+folded: >
+ text
Removed: llvm/trunk/test/YAMLParser/spec-05-08.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-08.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-08.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-08.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-single: 'text'
-double: "text"
Added: llvm/trunk/test/YAMLParser/spec-05-08.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-08.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-08.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-08.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+single: 'text'
+double: "text"
Removed: llvm/trunk/test/YAMLParser/spec-05-09.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-09.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-09.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-09.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-%YAML 1.1
---- text
Added: llvm/trunk/test/YAMLParser/spec-05-09.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-09.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-09.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-09.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+%YAML 1.1
+--- text
Removed: llvm/trunk/test/YAMLParser/spec-05-10.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-10.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-10.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-10.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
-
-commercial-at: @text
-grave-accent: `text
-
-# CHECK: error
Added: llvm/trunk/test/YAMLParser/spec-05-10.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-10.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-10.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-10.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
+
+commercial-at: @text
+grave-accent: `text
+
+# CHECK: error
Removed: llvm/trunk/test/YAMLParser/spec-05-11.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-11.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-11.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-11.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-|
- Generic line break (no glyph)
- Generic line break (glyphed)Â
Line separator⨠Paragraph separatorâ©
Added: llvm/trunk/test/YAMLParser/spec-05-11.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-11.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-11.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-11.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+|
+ Generic line break (no glyph)
+ Generic line break (glyphed)Â
Line separator⨠Paragraph separatorâ©
Removed: llvm/trunk/test/YAMLParser/spec-05-12.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-12.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-12.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-12.data (removed)
@@ -1,16 +0,0 @@
-# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
-#
-# We don't currently reject tabs as indentation.
-# XFAIL: *
-
-# Tabs do's and don'ts:
-# comment:
-quoted: "Quoted "
-block: |
- void main() {
- printf("Hello, world!\n");
- }
-elsewhere: # separation
- indentation, in plain scalar
-
-# CHECK: error
Added: llvm/trunk/test/YAMLParser/spec-05-12.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-12.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-12.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-12.test Thu May 7 13:08:46 2015
@@ -0,0 +1,18 @@
+# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
+#
+# FIXME: This test should actually fail. Yaml-bench should report an error
+# that a tab is being used to indent a plain scalar at line 15.
+# We don't currently reject tabs as indentation.
+
+# Tabs do's and don'ts:
+# comment:
+quoted: "Quoted "
+block: |
+ void main() {
+ printf("Hello, world!\n");
+ }
+elsewhere: # separation
+ indentation, in plain scalar
+
+
+# CHECK: !!str "Quoted\t\t"
Removed: llvm/trunk/test/YAMLParser/spec-05-13.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-13.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-13.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-13.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
- "Text containing
- both space and
- tab characters"
Added: llvm/trunk/test/YAMLParser/spec-05-13.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-13.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-13.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-13.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+ "Text containing
+ both space and
+ tab characters"
Removed: llvm/trunk/test/YAMLParser/spec-05-14.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-14.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-14.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-14.data (removed)
@@ -1,9 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-"Fun with \\
-\" \a \b \e \f \
-\n \r \t \v \0 \
-\ \_ \N \L \P \
-\x41 \u0041 \U00000041"
-
-# CHECK: !!str "Fun with \\\n\" \a \b \e \f \n \r \t \v \0 \_ \N \L \P A A A"
Added: llvm/trunk/test/YAMLParser/spec-05-14.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-14.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-14.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-14.test Thu May 7 13:08:46 2015
@@ -0,0 +1,9 @@
+# RUN: yaml-bench -canonical %s
+
+"Fun with \\
+\" \a \b \e \f \
+\n \r \t \v \0 \
+\ \_ \N \L \P \
+\x41 \u0041 \U00000041"
+
+# CHECK: !!str "Fun with \\\n\" \a \b \e \f \n \r \t \v \0 \_ \N \L \P A A A"
Removed: llvm/trunk/test/YAMLParser/spec-05-15.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-15.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-15.data (original)
+++ llvm/trunk/test/YAMLParser/spec-05-15.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
-
-Bad escapes:
- "\c
- \xq-"
-
-# CHECK: error
Added: llvm/trunk/test/YAMLParser/spec-05-15.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-05-15.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-05-15.test (added)
+++ llvm/trunk/test/YAMLParser/spec-05-15.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
+
+Bad escapes:
+ "\c
+ \xq-"
+
+# CHECK: error
Removed: llvm/trunk/test/YAMLParser/spec-06-01.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-01.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-01.data (original)
+++ llvm/trunk/test/YAMLParser/spec-06-01.data (removed)
@@ -1,16 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
- # Leading comment line spaces are
- # neither content nor indentation.
-
-Not indented:
- By one space: |
- By four
- spaces
- Flow style: [ # Leading spaces
- By two, # in flow style
- Also by two, # are neither
-# Tabs are not allowed:
-# Still by two # content nor
- Still by two # content nor
- ] # indentation.
Added: llvm/trunk/test/YAMLParser/spec-06-01.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-01.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-01.test (added)
+++ llvm/trunk/test/YAMLParser/spec-06-01.test Thu May 7 13:08:46 2015
@@ -0,0 +1,16 @@
+# RUN: yaml-bench -canonical %s
+
+ # Leading comment line spaces are
+ # neither content nor indentation.
+
+Not indented:
+ By one space: |
+ By four
+ spaces
+ Flow style: [ # Leading spaces
+ By two, # in flow style
+ Also by two, # are neither
+# Tabs are not allowed:
+# Still by two # content nor
+ Still by two # content nor
+ ] # indentation.
Removed: llvm/trunk/test/YAMLParser/spec-06-02.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-02.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-02.data (original)
+++ llvm/trunk/test/YAMLParser/spec-06-02.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
- # Comment
-
-
Added: llvm/trunk/test/YAMLParser/spec-06-02.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-02.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-02.test (added)
+++ llvm/trunk/test/YAMLParser/spec-06-02.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+ # Comment
+
+
Removed: llvm/trunk/test/YAMLParser/spec-06-03.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-03.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-03.data (original)
+++ llvm/trunk/test/YAMLParser/spec-06-03.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-key: # Comment
- value
Added: llvm/trunk/test/YAMLParser/spec-06-03.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-03.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-03.test (added)
+++ llvm/trunk/test/YAMLParser/spec-06-03.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+key: # Comment
+ value
Removed: llvm/trunk/test/YAMLParser/spec-06-04.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-04.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-04.data (original)
+++ llvm/trunk/test/YAMLParser/spec-06-04.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-key: # Comment
- # lines
- value
-
Added: llvm/trunk/test/YAMLParser/spec-06-04.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-04.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-04.test (added)
+++ llvm/trunk/test/YAMLParser/spec-06-04.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+key: # Comment
+ # lines
+ value
+
Removed: llvm/trunk/test/YAMLParser/spec-06-05.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-05.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-05.data (original)
+++ llvm/trunk/test/YAMLParser/spec-06-05.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-{ first: Sammy, last: Sosa }:
-# Statistics:
- hr: # Home runs
- 65
- avg: # Average
- 0.278
Added: llvm/trunk/test/YAMLParser/spec-06-05.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-05.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-05.test (added)
+++ llvm/trunk/test/YAMLParser/spec-06-05.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+{ first: Sammy, last: Sosa }:
+# Statistics:
+ hr: # Home runs
+ 65
+ avg: # Average
+ 0.278
Removed: llvm/trunk/test/YAMLParser/spec-06-06.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-06.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-06.data (original)
+++ llvm/trunk/test/YAMLParser/spec-06-06.data (removed)
@@ -1,9 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-plain: text
- lines
-quoted: "text
- lines"
-block: |
- text
- lines
Added: llvm/trunk/test/YAMLParser/spec-06-06.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-06.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-06.test (added)
+++ llvm/trunk/test/YAMLParser/spec-06-06.test Thu May 7 13:08:46 2015
@@ -0,0 +1,9 @@
+# RUN: yaml-bench -canonical %s
+
+plain: text
+ lines
+quoted: "text
+ lines"
+block: |
+ text
+ lines
Removed: llvm/trunk/test/YAMLParser/spec-06-07.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-07.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-07.data (original)
+++ llvm/trunk/test/YAMLParser/spec-06-07.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- foo
-
- bar
-- |-
- foo
-
- bar
-
Added: llvm/trunk/test/YAMLParser/spec-06-07.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-07.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-07.test (added)
+++ llvm/trunk/test/YAMLParser/spec-06-07.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+- foo
+
+ bar
+- |-
+ foo
+
+ bar
+
Removed: llvm/trunk/test/YAMLParser/spec-06-08.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-08.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-08.data (original)
+++ llvm/trunk/test/YAMLParser/spec-06-08.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
->-
- specific⨠trimmedÂ
Â
Â
Â
asÂ
space
Added: llvm/trunk/test/YAMLParser/spec-06-08.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-06-08.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-06-08.test (added)
+++ llvm/trunk/test/YAMLParser/spec-06-08.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+>-
+ specific⨠trimmedÂ
Â
Â
Â
asÂ
space
Removed: llvm/trunk/test/YAMLParser/spec-07-01.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-01.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-01.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-01.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-%FOO bar baz # Should be ignored
- # with a warning.
---- "foo"
Added: llvm/trunk/test/YAMLParser/spec-07-01.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-01.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-01.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-01.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+%FOO bar baz # Should be ignored
+ # with a warning.
+--- "foo"
Removed: llvm/trunk/test/YAMLParser/spec-07-02.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-02.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-02.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-02.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-%YAML 1.2 # Attempt parsing
- # with a warning
----
-"foo"
Added: llvm/trunk/test/YAMLParser/spec-07-02.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-02.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-02.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-02.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+%YAML 1.2 # Attempt parsing
+ # with a warning
+---
+"foo"
Removed: llvm/trunk/test/YAMLParser/spec-07-03.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-03.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-03.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-03.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
-
-%YAML 1.1
-%YAML 1.1
-foo
-
-# CHECK: error
Added: llvm/trunk/test/YAMLParser/spec-07-03.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-03.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-03.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-03.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
+
+%YAML 1.1
+%YAML 1.1
+foo
+
+# CHECK: error
Removed: llvm/trunk/test/YAMLParser/spec-07-04.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-04.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-04.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-04.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s | FileCheck %s
-
-%TAG !yaml! tag:yaml.org,2002:
----
-!yaml!str "foo"
-
-#CHECK: !!str "foo"
Added: llvm/trunk/test/YAMLParser/spec-07-04.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-04.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-04.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-04.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: yaml-bench -canonical %s | FileCheck %s
+
+%TAG !yaml! tag:yaml.org,2002:
+---
+!yaml!str "foo"
+
+#CHECK: !!str "foo"
Removed: llvm/trunk/test/YAMLParser/spec-07-05.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-05.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-05.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-05.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
-#
-# We don't currently parse TAG directives.
-# XFAIL: *
-
-%TAG ! !foo
-%TAG ! !foo
-bar
-
-# CHECK: error
Added: llvm/trunk/test/YAMLParser/spec-07-05.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-05.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-05.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-05.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
+#
+# We don't currently parse TAG directives.
+# CHECK: error: Unexpected token
+
+%TAG ! !foo
+%TAG ! !foo
+bar
Removed: llvm/trunk/test/YAMLParser/spec-07-06.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-06.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-06.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-06.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-%TAG ! !foo
-%TAG !yaml! tag:yaml.org,2002:
----
-- !bar "baz"
-- !yaml!str "string"
Added: llvm/trunk/test/YAMLParser/spec-07-06.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-06.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-06.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-06.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: yaml-bench -canonical %s
+
+%TAG ! !foo
+%TAG !yaml! tag:yaml.org,2002:
+---
+- !bar "baz"
+- !yaml!str "string"
Removed: llvm/trunk/test/YAMLParser/spec-07-07a.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-07a.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-07a.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-07a.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Private application:
-!foo "bar"
Added: llvm/trunk/test/YAMLParser/spec-07-07a.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-07a.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-07a.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-07a.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+# Private application:
+!foo "bar"
Removed: llvm/trunk/test/YAMLParser/spec-07-07b.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-07b.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-07b.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-07b.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Migrated to global:
-%TAG ! tag:ben-kiki.org,2000:app/
----
-!foo "bar"
Added: llvm/trunk/test/YAMLParser/spec-07-07b.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-07b.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-07b.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-07b.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+# Migrated to global:
+%TAG ! tag:ben-kiki.org,2000:app/
+---
+!foo "bar"
Removed: llvm/trunk/test/YAMLParser/spec-07-08.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-08.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-08.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-08.data (removed)
@@ -1,11 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Explicitly specify default settings:
-%TAG ! !
-%TAG !! tag:yaml.org,2002:
-# Named handles have no default:
-%TAG !o! tag:ben-kiki.org,2000:
----
-- !foo "bar"
-- !!str "string"
-- !o!type "baz"
Added: llvm/trunk/test/YAMLParser/spec-07-08.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-08.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-08.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-08.test Thu May 7 13:08:46 2015
@@ -0,0 +1,11 @@
+# RUN: yaml-bench -canonical %s
+
+# Explicitly specify default settings:
+%TAG ! !
+%TAG !! tag:yaml.org,2002:
+# Named handles have no default:
+%TAG !o! tag:ben-kiki.org,2000:
+---
+- !foo "bar"
+- !!str "string"
+- !o!type "baz"
Removed: llvm/trunk/test/YAMLParser/spec-07-09.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-09.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-09.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-09.data (removed)
@@ -1,13 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-foo
-...
-# Repeated end marker.
-...
----
-bar
-# No end marker.
----
-baz
-...
Added: llvm/trunk/test/YAMLParser/spec-07-09.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-09.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-09.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-09.test Thu May 7 13:08:46 2015
@@ -0,0 +1,13 @@
+# RUN: yaml-bench -canonical %s
+
+---
+foo
+...
+# Repeated end marker.
+...
+---
+bar
+# No end marker.
+---
+baz
+...
Removed: llvm/trunk/test/YAMLParser/spec-07-10.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-10.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-10.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-10.data (removed)
@@ -1,13 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-"Root flow
- scalar"
---- !!str >
- Root block
- scalar
----
-# Root collection:
-foo : bar
-... # Is optional.
----
-# Explicit document may be empty.
Added: llvm/trunk/test/YAMLParser/spec-07-10.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-10.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-10.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-10.test Thu May 7 13:08:46 2015
@@ -0,0 +1,13 @@
+# RUN: yaml-bench -canonical %s
+
+"Root flow
+ scalar"
+--- !!str >
+ Root block
+ scalar
+---
+# Root collection:
+foo : bar
+... # Is optional.
+---
+# Explicit document may be empty.
Removed: llvm/trunk/test/YAMLParser/spec-07-11.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-11.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-11.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-11.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# A stream may contain
-# no documents.
Added: llvm/trunk/test/YAMLParser/spec-07-11.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-11.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-11.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-11.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+# A stream may contain
+# no documents.
Removed: llvm/trunk/test/YAMLParser/spec-07-12a.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-12a.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-12a.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-12a.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Implicit document. Root
-# collection (mapping) node.
-foo : bar
Added: llvm/trunk/test/YAMLParser/spec-07-12a.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-12a.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-12a.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-12a.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+# Implicit document. Root
+# collection (mapping) node.
+foo : bar
Removed: llvm/trunk/test/YAMLParser/spec-07-12b.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-12b.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-12b.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-12b.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Explicit document. Root
-# scalar (literal) node.
---- |
- Text content
Added: llvm/trunk/test/YAMLParser/spec-07-12b.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-12b.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-12b.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-12b.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+# Explicit document. Root
+# scalar (literal) node.
+--- |
+ Text content
Removed: llvm/trunk/test/YAMLParser/spec-07-13.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-13.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-13.data (original)
+++ llvm/trunk/test/YAMLParser/spec-07-13.data (removed)
@@ -1,11 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-! "First document"
----
-!foo "No directives"
-%TAG ! !foo
----
-!bar "With directives"
-%YAML 1.1
----
-!baz "Reset settings"
Added: llvm/trunk/test/YAMLParser/spec-07-13.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-07-13.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-07-13.test (added)
+++ llvm/trunk/test/YAMLParser/spec-07-13.test Thu May 7 13:08:46 2015
@@ -0,0 +1,11 @@
+# RUN: yaml-bench -canonical %s
+
+! "First document"
+---
+!foo "No directives"
+%TAG ! !foo
+---
+!bar "With directives"
+%YAML 1.1
+---
+!baz "Reset settings"
Removed: llvm/trunk/test/YAMLParser/spec-08-01.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-01.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-01.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-01.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-!!str &a1 "foo" : !!str bar
-&a2 baz : *a1
Added: llvm/trunk/test/YAMLParser/spec-08-01.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-01.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-01.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-01.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+!!str &a1 "foo" : !!str bar
+&a2 baz : *a1
Removed: llvm/trunk/test/YAMLParser/spec-08-02.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-02.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-02.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-02.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-First occurrence: &anchor Value
-Second occurrence: *anchor
Added: llvm/trunk/test/YAMLParser/spec-08-02.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-02.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-02.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-02.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+First occurrence: &anchor Value
+Second occurrence: *anchor
Removed: llvm/trunk/test/YAMLParser/spec-08-03.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-03.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-03.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-03.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-!<tag:yaml.org,2002:str> foo :
- !<!bar> baz
Added: llvm/trunk/test/YAMLParser/spec-08-03.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-03.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-03.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-03.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+!<tag:yaml.org,2002:str> foo :
+ !<!bar> baz
Removed: llvm/trunk/test/YAMLParser/spec-08-04.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-04.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-04.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-04.data (removed)
@@ -1,9 +0,0 @@
-# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
-#
-# We don't currently look at the content of literal tags.
-# XFAIL: *
-
-- !<!> foo
-- !<$:?> bar
-
-# CHECK: error
Added: llvm/trunk/test/YAMLParser/spec-08-04.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-04.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-04.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-04.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
+#
+# We don't currently look at the content of literal tags.
+# CHECK: error: Unknown tag handle
+
+- !<!> foo
+- !<$:?> bar
Removed: llvm/trunk/test/YAMLParser/spec-08-05.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-05.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-05.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-05.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-%TAG !o! tag:ben-kiki.org,2000:
----
-- !local foo
-- !!str bar
-- !o!type baz
Added: llvm/trunk/test/YAMLParser/spec-08-05.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-05.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-05.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-05.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: yaml-bench -canonical %s
+
+%TAG !o! tag:ben-kiki.org,2000:
+---
+- !local foo
+- !!str bar
+- !o!type baz
Removed: llvm/trunk/test/YAMLParser/spec-08-06.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-06.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-06.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-06.data (removed)
@@ -1,12 +0,0 @@
-# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
-#
-# We don't currently validate tags.
-# XFAIL: *
-
-%TAG !o! tag:ben-kiki.org,2000:
----
-- !$a!b foo
-- !o! bar
-- !h!type baz
-
-# CHECK: error
Added: llvm/trunk/test/YAMLParser/spec-08-06.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-06.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-06.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-06.test Thu May 7 13:08:46 2015
@@ -0,0 +1,11 @@
+# RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
+#
+# We don't currently validate tags.
+# CHECK: error: Unknown tag handle
+
+%TAG !o! tag:ben-kiki.org,2000:
+---
+- !$a!b foo
+- !o! bar
+- !h!type baz
+
Removed: llvm/trunk/test/YAMLParser/spec-08-07.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-07.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-07.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-07.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Assuming conventional resolution:
-- "12"
-- 12
-- ! 12
Added: llvm/trunk/test/YAMLParser/spec-08-07.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-07.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-07.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-07.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+# Assuming conventional resolution:
+- "12"
+- 12
+- ! 12
Removed: llvm/trunk/test/YAMLParser/spec-08-08.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-08.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-08.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-08.data (removed)
@@ -1,15 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-foo:
- "bar
- baz"
----
-"foo
- bar"
----
-foo
- bar
---- |
- foo
-...
Added: llvm/trunk/test/YAMLParser/spec-08-08.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-08.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-08.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-08.test Thu May 7 13:08:46 2015
@@ -0,0 +1,15 @@
+# RUN: yaml-bench -canonical %s
+
+---
+foo:
+ "bar
+ baz"
+---
+"foo
+ bar"
+---
+foo
+ bar
+--- |
+ foo
+...
Removed: llvm/trunk/test/YAMLParser/spec-08-09.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-09.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-09.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-09.data (removed)
@@ -1,13 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-scalars:
- plain: !!str some text
- quoted:
- single: 'some text'
- double: "some text"
-collections:
- sequence: !!seq [ !!str entry,
- # Mapping entry:
- key: value ]
- mapping: { key: value }
Added: llvm/trunk/test/YAMLParser/spec-08-09.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-09.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-09.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-09.test Thu May 7 13:08:46 2015
@@ -0,0 +1,13 @@
+# RUN: yaml-bench -canonical %s
+
+---
+scalars:
+ plain: !!str some text
+ quoted:
+ single: 'some text'
+ double: "some text"
+collections:
+ sequence: !!seq [ !!str entry,
+ # Mapping entry:
+ key: value ]
+ mapping: { key: value }
Removed: llvm/trunk/test/YAMLParser/spec-08-10.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-10.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-10.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-10.data (removed)
@@ -1,17 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-block styles:
- scalars:
- literal: !!str |
- #!/usr/bin/perl
- print "Hello, world!\n";
- folded: >
- This sentence
- is false.
- collections: !!map
- sequence: !!seq # Entry:
- - entry # Plain
- # Mapping entry:
- - key: value
- mapping:
- key: value
Added: llvm/trunk/test/YAMLParser/spec-08-10.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-10.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-10.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-10.test Thu May 7 13:08:46 2015
@@ -0,0 +1,17 @@
+# RUN: yaml-bench -canonical %s
+
+block styles:
+ scalars:
+ literal: !!str |
+ #!/usr/bin/perl
+ print "Hello, world!\n";
+ folded: >
+ This sentence
+ is false.
+ collections: !!map
+ sequence: !!seq # Entry:
+ - entry # Plain
+ # Mapping entry:
+ - key: value
+ mapping:
+ key: value
Removed: llvm/trunk/test/YAMLParser/spec-08-11.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-11.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-11.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-11.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-First occurrence: &anchor Value
-Second occurrence: *anchor
Added: llvm/trunk/test/YAMLParser/spec-08-11.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-11.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-11.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-11.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+First occurrence: &anchor Value
+Second occurrence: *anchor
Removed: llvm/trunk/test/YAMLParser/spec-08-12.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-12.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-12.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-12.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-[
- Without properties,
- &anchor "Anchored",
- !!str 'Tagged',
- *anchor, # Alias node
- !!str , # Empty plain scalar
- '', # Empty plain scalar
-]
Added: llvm/trunk/test/YAMLParser/spec-08-12.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-12.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-12.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-12.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+[
+ Without properties,
+ &anchor "Anchored",
+ !!str 'Tagged',
+ *anchor, # Alias node
+ !!str , # Empty plain scalar
+ '', # Empty plain scalar
+]
Removed: llvm/trunk/test/YAMLParser/spec-08-13.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-13.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-13.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-13.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-{
- ? foo :,
- ? : bar,
-}
Added: llvm/trunk/test/YAMLParser/spec-08-13.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-13.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-13.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-13.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+{
+ ? foo :,
+ ? : bar,
+}
Removed: llvm/trunk/test/YAMLParser/spec-08-14.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-14.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-14.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-14.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- "flow in block"
-- >
- Block scalar
-- !!map # Block collection
- foo : bar
Added: llvm/trunk/test/YAMLParser/spec-08-14.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-14.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-14.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-14.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: yaml-bench -canonical %s
+
+- "flow in block"
+- >
+ Block scalar
+- !!map # Block collection
+ foo : bar
Removed: llvm/trunk/test/YAMLParser/spec-08-15.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-15.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-15.data (original)
+++ llvm/trunk/test/YAMLParser/spec-08-15.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- # Empty plain scalar
-- ? foo
- :
- ?
- : bar
Added: llvm/trunk/test/YAMLParser/spec-08-15.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-08-15.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-08-15.test (added)
+++ llvm/trunk/test/YAMLParser/spec-08-15.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: yaml-bench -canonical %s
+
+- # Empty plain scalar
+- ? foo
+ :
+ ?
+ : bar
Removed: llvm/trunk/test/YAMLParser/spec-09-01.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-01.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-01.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-01.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-"simple key" : {
- "also simple" : value,
- ? "not a
- simple key" : "any
- value"
-}
Added: llvm/trunk/test/YAMLParser/spec-09-01.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-01.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-01.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-01.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+"simple key" : {
+ "also simple" : value,
+ ? "not a
+ simple key" : "any
+ value"
+}
Removed: llvm/trunk/test/YAMLParser/spec-09-02.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-02.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-02.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-02.data (removed)
@@ -1,14 +0,0 @@
-# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
-#
-# Indent trimming is not yet implemented.
-# XFAIL: *
-
- "as space
- trimmed
-
- specific
-
- escaped \
- none"
-
-# CHECK: !!str "as space trimmed\nspecific\nescaped\tnone"
Added: llvm/trunk/test/YAMLParser/spec-09-02.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-02.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-02.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-02.test Thu May 7 13:08:46 2015
@@ -0,0 +1,14 @@
+# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
+
+ "as space
+ trimmed
+
+ specific
+
+ escaped \
+ none"
+
+# FIXME: The string below should actually be
+# "as space trimmed\nspecific\nescaped\tnone", but the parser currently has
+# a bug when parsing multiline quoted strings.
+# CHECK: !!str "as space\n trimmed\n specific\n escaped\t none"
Removed: llvm/trunk/test/YAMLParser/spec-09-03.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-03.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-03.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-03.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- "
- last"
-- "
- last"
-- " first
- last"
Added: llvm/trunk/test/YAMLParser/spec-09-03.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-03.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-03.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-03.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+- "
+ last"
+- "
+ last"
+- " first
+ last"
Removed: llvm/trunk/test/YAMLParser/spec-09-04.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-04.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-04.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-04.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
- "first
- inner 1
- \ inner 2 \
- last"
Added: llvm/trunk/test/YAMLParser/spec-09-04.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-04.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-04.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-04.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+ "first
+ inner 1
+ \ inner 2 \
+ last"
Removed: llvm/trunk/test/YAMLParser/spec-09-05.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-05.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-05.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-05.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- "first
- "
-- "first
-
- last"
-- "first
- inner
- \ last"
Added: llvm/trunk/test/YAMLParser/spec-09-05.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-05.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-05.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-05.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+- "first
+ "
+- "first
+
+ last"
+- "first
+ inner
+ \ last"
Removed: llvm/trunk/test/YAMLParser/spec-09-06.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-06.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-06.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-06.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
- 'here''s to "quotes"'
Added: llvm/trunk/test/YAMLParser/spec-09-06.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-06.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-06.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-06.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+ 'here''s to "quotes"'
Removed: llvm/trunk/test/YAMLParser/spec-09-07.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-07.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-07.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-07.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-'simple key' : {
- 'also simple' : value,
- ? 'not a
- simple key' : 'any
- value'
-}
Added: llvm/trunk/test/YAMLParser/spec-09-07.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-07.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-07.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-07.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+'simple key' : {
+ 'also simple' : value,
+ ? 'not a
+ simple key' : 'any
+ value'
+}
Removed: llvm/trunk/test/YAMLParser/spec-09-08.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-08.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-08.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-08.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
- 'as space Â
trimmed Â
Â
specificâ¨Â
none'
Added: llvm/trunk/test/YAMLParser/spec-09-08.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-08.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-08.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-08.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+ 'as space Â
trimmed Â
Â
specificâ¨Â
none'
Removed: llvm/trunk/test/YAMLParser/spec-09-09.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-09.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-09.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-09.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- '
- last'
-- '
- last'
-- ' first
- last'
Added: llvm/trunk/test/YAMLParser/spec-09-09.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-09.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-09.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-09.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+- '
+ last'
+- '
+ last'
+- ' first
+ last'
Removed: llvm/trunk/test/YAMLParser/spec-09-10.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-10.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-10.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-10.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
- 'first
- inner
- last'
Added: llvm/trunk/test/YAMLParser/spec-09-10.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-10.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-10.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-10.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+ 'first
+ inner
+ last'
Removed: llvm/trunk/test/YAMLParser/spec-09-11.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-11.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-11.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-11.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- 'first
- '
-- 'first
-
- last'
Added: llvm/trunk/test/YAMLParser/spec-09-11.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-11.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-11.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-11.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: yaml-bench -canonical %s
+
+- 'first
+ '
+- 'first
+
+ last'
Removed: llvm/trunk/test/YAMLParser/spec-09-12.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-12.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-12.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-12.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Outside flow collection:
-- ::std::vector
-- Up, up, and away!
-- -123
-# Inside flow collection:
-- [ '::std::vector',
- "Up, up, and away!",
- -123 ]
Added: llvm/trunk/test/YAMLParser/spec-09-12.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-12.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-12.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-12.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+# Outside flow collection:
+- ::std::vector
+- Up, up, and away!
+- -123
+# Inside flow collection:
+- [ '::std::vector',
+ "Up, up, and away!",
+ -123 ]
Removed: llvm/trunk/test/YAMLParser/spec-09-13.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-13.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-13.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-13.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-simple key : {
- also simple : value,
- ? not a
- simple key : any
- value
-}
Added: llvm/trunk/test/YAMLParser/spec-09-13.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-13.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-13.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-13.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+simple key : {
+ also simple : value,
+ ? not a
+ simple key : any
+ value
+}
Removed: llvm/trunk/test/YAMLParser/spec-09-14.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-14.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-14.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-14.data (removed)
@@ -1,21 +0,0 @@
-# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
-#
-# Not quite sure why this doesn't fail.
-# XFAIL: *
-
----
---- ||| : foo
-... >>>: bar
----
-[
----
-,
-... ,
-{
---- :
-... # Nested
-}
-]
-...
-
-# CHECK: error
Added: llvm/trunk/test/YAMLParser/spec-09-14.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-14.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-14.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-14.test Thu May 7 13:08:46 2015
@@ -0,0 +1,21 @@
+# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
+#
+# FIXME: This test should actually fail. Yaml bench should report an error that
+# says that the '---' and '...' document start/end markers must not be specified
+# as the first content line of a non-indented plain scalar.
+# CHECK: !!str
+
+---
+--- ||| : foo
+... >>>: bar
+---
+[
+---
+,
+... ,
+{
+--- :
+... # Nested
+}
+]
+...
Removed: llvm/trunk/test/YAMLParser/spec-09-15.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-15.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-15.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-15.data (removed)
@@ -1,15 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
----
-"---" : foo
-...: bar
----
-[
----,
-...,
-{
-? ---
-: ...
-}
-]
-...
Added: llvm/trunk/test/YAMLParser/spec-09-15.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-15.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-15.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-15.test Thu May 7 13:08:46 2015
@@ -0,0 +1,15 @@
+# RUN: yaml-bench -canonical %s
+
+---
+"---" : foo
+...: bar
+---
+[
+---,
+...,
+{
+? ---
+: ...
+}
+]
+...
Removed: llvm/trunk/test/YAMLParser/spec-09-16.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-16.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-16.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-16.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-# Tabs are confusing:
-# as space/trimmed/specific/none
- as space Â
trimmed Â
Â
specificâ¨Â
none
Added: llvm/trunk/test/YAMLParser/spec-09-16.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-16.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-16.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-16.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+# Tabs are confusing:
+# as space/trimmed/specific/none
+ as space Â
trimmed Â
Â
specificâ¨Â
none
Removed: llvm/trunk/test/YAMLParser/spec-09-17.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-17.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-17.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-17.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
- first line
-
- more line
Added: llvm/trunk/test/YAMLParser/spec-09-17.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-17.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-17.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-17.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+ first line
+
+ more line
Removed: llvm/trunk/test/YAMLParser/spec-09-18.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-18.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-18.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-18.data (removed)
@@ -1,11 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- | # Just the style
- literal
-- >1 # Indentation indicator
- folded
-- |+ # Chomping indicator
- keep
-
-- >-1 # Both indicators
- strip
Added: llvm/trunk/test/YAMLParser/spec-09-18.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-18.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-18.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-18.test Thu May 7 13:08:46 2015
@@ -0,0 +1,11 @@
+# RUN: yaml-bench -canonical %s
+
+- | # Just the style
+ literal
+- >1 # Indentation indicator
+ folded
+- |+ # Chomping indicator
+ keep
+
+- >-1 # Both indicators
+ strip
Removed: llvm/trunk/test/YAMLParser/spec-09-19.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-19.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-19.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-19.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- |
- literal
-- >
- folded
Added: llvm/trunk/test/YAMLParser/spec-09-19.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-19.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-19.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-19.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+- |
+ literal
+- >
+ folded
Removed: llvm/trunk/test/YAMLParser/spec-09-20.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-20.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-20.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-20.data (removed)
@@ -1,13 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- |
- detected
-- >
-
-
- # detected
-- |1
- explicit
-- >
-
- detected
Added: llvm/trunk/test/YAMLParser/spec-09-20.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-20.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-20.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-20.test Thu May 7 13:08:46 2015
@@ -0,0 +1,13 @@
+# RUN: yaml-bench -canonical %s
+
+- |
+ detected
+- >
+
+
+ # detected
+- |1
+ explicit
+- >
+
+ detected
Removed: llvm/trunk/test/YAMLParser/spec-09-21.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-21.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-21.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-21.data (removed)
@@ -1,12 +0,0 @@
-# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
-
-- |
-
- text
-- >
- text
- text
-- |1
- text
-
-# CHECK: error
Added: llvm/trunk/test/YAMLParser/spec-09-21.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-21.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-21.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-21.test Thu May 7 13:08:46 2015
@@ -0,0 +1,12 @@
+# RUN: not yaml-bench -canonical %s 2>&1 | FileCheck %s
+
+- |
+
+ text
+- >
+ text
+ text
+- |1
+ text
+
+# CHECK: error
Removed: llvm/trunk/test/YAMLParser/spec-09-22.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-22.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-22.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-22.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-strip: |-
- textâ©clip: |
- textÂ
keep: |+
- textâ¨
Added: llvm/trunk/test/YAMLParser/spec-09-22.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-22.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-22.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-22.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+strip: |-
+ textâ©clip: |
+ textÂ
keep: |+
+ textâ¨
Removed: llvm/trunk/test/YAMLParser/spec-09-23.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-23.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-23.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-23.data (removed)
@@ -1,13 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
- # Strip
- # Comments:
-strip: |-
- # text⩠⨠# Clip
- # comments:
-Â
clip: |
- # textÂ
â© # Keep
- # comments:
-Â
keep: |+
- # textâ¨Â
# Trail
- # comments.
Added: llvm/trunk/test/YAMLParser/spec-09-23.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-23.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-23.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-23.test Thu May 7 13:08:46 2015
@@ -0,0 +1,13 @@
+# RUN: yaml-bench -canonical %s
+
+ # Strip
+ # Comments:
+strip: |-
+ # text⩠⨠# Clip
+ # comments:
+Â
clip: |
+ # textÂ
â© # Keep
+ # comments:
+Â
keep: |+
+ # textâ¨Â
# Trail
+ # comments.
Removed: llvm/trunk/test/YAMLParser/spec-09-24.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-24.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-24.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-24.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-strip: >-
-
-clip: >
-
-keep: |+
-
Added: llvm/trunk/test/YAMLParser/spec-09-24.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-24.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-24.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-24.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+strip: >-
+
+clip: >
+
+keep: |+
+
Removed: llvm/trunk/test/YAMLParser/spec-09-25.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-25.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-25.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-25.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-| # Simple block scalar
- literal
- text
Added: llvm/trunk/test/YAMLParser/spec-09-25.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-25.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-25.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-25.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+| # Simple block scalar
+ literal
+ text
Removed: llvm/trunk/test/YAMLParser/spec-09-26.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-26.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-26.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-26.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-|
-
-
- literal
-
- text
-
- # Comment
Added: llvm/trunk/test/YAMLParser/spec-09-26.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-26.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-26.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-26.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+|
+
+
+ literal
+
+ text
+
+ # Comment
Removed: llvm/trunk/test/YAMLParser/spec-09-27.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-27.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-27.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-27.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-|
-
-
- literal
-
- text
-
- # Comment
Added: llvm/trunk/test/YAMLParser/spec-09-27.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-27.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-27.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-27.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+|
+
+
+ literal
+
+ text
+
+ # Comment
Removed: llvm/trunk/test/YAMLParser/spec-09-28.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-28.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-28.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-28.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-|
-
-
- literal
-
- text
-
- # Comment
Added: llvm/trunk/test/YAMLParser/spec-09-28.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-28.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-28.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-28.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+|
+
+
+ literal
+
+ text
+
+ # Comment
Removed: llvm/trunk/test/YAMLParser/spec-09-29.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-29.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-29.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-29.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-> # Simple folded scalar
- folded
- text
- lines
Added: llvm/trunk/test/YAMLParser/spec-09-29.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-29.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-29.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-29.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+> # Simple folded scalar
+ folded
+ text
+ lines
Removed: llvm/trunk/test/YAMLParser/spec-09-30.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-30.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-30.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-30.data (removed)
@@ -1,16 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
->
- folded
- line
-
- next
- line
-
- * bullet
- * list
-
- last
- line
-
-# Comment
Added: llvm/trunk/test/YAMLParser/spec-09-30.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-30.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-30.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-30.test Thu May 7 13:08:46 2015
@@ -0,0 +1,16 @@
+# RUN: yaml-bench -canonical %s
+
+>
+ folded
+ line
+
+ next
+ line
+
+ * bullet
+ * list
+
+ last
+ line
+
+# Comment
Removed: llvm/trunk/test/YAMLParser/spec-09-31.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-31.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-31.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-31.data (removed)
@@ -1,16 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
->
- folded
- line
-
- next
- line
-
- * bullet
- * list
-
- last
- line
-
-# Comment
Added: llvm/trunk/test/YAMLParser/spec-09-31.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-31.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-31.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-31.test Thu May 7 13:08:46 2015
@@ -0,0 +1,16 @@
+# RUN: yaml-bench -canonical %s
+
+>
+ folded
+ line
+
+ next
+ line
+
+ * bullet
+ * list
+
+ last
+ line
+
+# Comment
Removed: llvm/trunk/test/YAMLParser/spec-09-32.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-32.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-32.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-32.data (removed)
@@ -1,16 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
->
- folded
- line
-
- next
- line
-
- * bullet
- * list
-
- last
- line
-
-# Comment
Added: llvm/trunk/test/YAMLParser/spec-09-32.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-32.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-32.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-32.test Thu May 7 13:08:46 2015
@@ -0,0 +1,16 @@
+# RUN: yaml-bench -canonical %s
+
+>
+ folded
+ line
+
+ next
+ line
+
+ * bullet
+ * list
+
+ last
+ line
+
+# Comment
Removed: llvm/trunk/test/YAMLParser/spec-09-33.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-33.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-33.data (original)
+++ llvm/trunk/test/YAMLParser/spec-09-33.data (removed)
@@ -1,16 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
->
- folded
- line
-
- next
- line
-
- * bullet
- * list
-
- last
- line
-
-# Comment
Added: llvm/trunk/test/YAMLParser/spec-09-33.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-09-33.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-09-33.test (added)
+++ llvm/trunk/test/YAMLParser/spec-09-33.test Thu May 7 13:08:46 2015
@@ -0,0 +1,16 @@
+# RUN: yaml-bench -canonical %s
+
+>
+ folded
+ line
+
+ next
+ line
+
+ * bullet
+ * list
+
+ last
+ line
+
+# Comment
Removed: llvm/trunk/test/YAMLParser/spec-10-01.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-01.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-01.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-01.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- [ inner, inner, ]
-- [inner,last]
Added: llvm/trunk/test/YAMLParser/spec-10-01.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-01.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-01.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-01.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+- [ inner, inner, ]
+- [inner,last]
Removed: llvm/trunk/test/YAMLParser/spec-10-02.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-02.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-02.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-02.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-[
-"double
- quoted", 'single
- quoted',
-plain
- text, [ nested ],
-single: pair ,
-]
Added: llvm/trunk/test/YAMLParser/spec-10-02.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-02.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-02.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-02.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+[
+"double
+ quoted", 'single
+ quoted',
+plain
+ text, [ nested ],
+single: pair ,
+]
Removed: llvm/trunk/test/YAMLParser/spec-10-03.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-03.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-03.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-03.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-block: # Block
- # sequence
-- one
-- two : three
Added: llvm/trunk/test/YAMLParser/spec-10-03.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-03.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-03.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-03.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+block: # Block
+ # sequence
+- one
+- two : three
Removed: llvm/trunk/test/YAMLParser/spec-10-04.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-04.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-04.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-04.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-block:
-- one
--
- - two
Added: llvm/trunk/test/YAMLParser/spec-10-04.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-04.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-04.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-04.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+block:
+- one
+-
+ - two
Removed: llvm/trunk/test/YAMLParser/spec-10-05.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-05.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-05.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-05.data (removed)
@@ -1,9 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- # Empty
-- |
- block node
-- - one # in-line
- - two # sequence
-- one: two # in-line
- # mapping
Added: llvm/trunk/test/YAMLParser/spec-10-05.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-05.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-05.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-05.test Thu May 7 13:08:46 2015
@@ -0,0 +1,9 @@
+# RUN: yaml-bench -canonical %s
+
+- # Empty
+- |
+ block node
+- - one # in-line
+ - two # sequence
+- one: two # in-line
+ # mapping
Removed: llvm/trunk/test/YAMLParser/spec-10-06.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-06.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-06.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-06.data (removed)
@@ -1,4 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- { inner : entry , also: inner , }
-- {inner: entry,last : entry}
Added: llvm/trunk/test/YAMLParser/spec-10-06.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-06.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-06.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-06.test Thu May 7 13:08:46 2015
@@ -0,0 +1,4 @@
+# RUN: yaml-bench -canonical %s
+
+- { inner : entry , also: inner , }
+- {inner: entry,last : entry}
Removed: llvm/trunk/test/YAMLParser/spec-10-07.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-07.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-07.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-07.data (removed)
@@ -1,9 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-{
-? : value, # Empty key
-? explicit
- key: value,
-simple key : value,
-[ collection, simple, key ]: value
-}
Added: llvm/trunk/test/YAMLParser/spec-10-07.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-07.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-07.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-07.test Thu May 7 13:08:46 2015
@@ -0,0 +1,9 @@
+# RUN: yaml-bench -canonical %s
+
+{
+? : value, # Empty key
+? explicit
+ key: value,
+simple key : value,
+[ collection, simple, key ]: value
+}
Removed: llvm/trunk/test/YAMLParser/spec-10-08.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-08.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-08.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-08.data (removed)
@@ -1,13 +0,0 @@
-# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
-#
-# This fails because even without a key token, some contexts (in this case flow
-# maps) allow implicit null keys, which mix with this in weird ways.
-# XFAIL: *
-
-{
-multi-line
- simple key : value,
-very long ...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
........................................(>1KB).......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
............................................................................ key: value
-}
-
-# CHECK: error
Added: llvm/trunk/test/YAMLParser/spec-10-08.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-08.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-08.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-08.test Thu May 7 13:08:46 2015
@@ -0,0 +1,13 @@
+# RUN: yaml-bench -canonical %s 2>&1 | FileCheck %s
+#
+# FIXME: This test should fail. Yaml bench should report an error that a simple
+# key spans across multiple lines and that another simple key is longer than
+# 1024 characters.
+
+{
+multi-line
+ simple key : value,
+very long ...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
........................................(>1KB).......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
............................................................................ key: value
+}
+
+# CHECK: ? !!str "very long
Removed: llvm/trunk/test/YAMLParser/spec-10-09.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-09.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-09.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-09.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-{
-key : value,
-empty: # empty valueâ
-}
Added: llvm/trunk/test/YAMLParser/spec-10-09.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-09.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-09.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-09.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+{
+key : value,
+empty: # empty valueâ
+}
Removed: llvm/trunk/test/YAMLParser/spec-10-10.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-10.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-10.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-10.data (removed)
@@ -1,10 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-{
-? explicit key1 : explicit value,
-? explicit key2 : , # Explicit empty
-? explicit key3, # Empty value
-simple key1 : explicit value,
-simple key2 : , # Explicit empty
-simple key3, # Empty value
-}
Added: llvm/trunk/test/YAMLParser/spec-10-10.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-10.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-10.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-10.test Thu May 7 13:08:46 2015
@@ -0,0 +1,10 @@
+# RUN: yaml-bench -canonical %s
+
+{
+? explicit key1 : explicit value,
+? explicit key2 : , # Explicit empty
+? explicit key3, # Empty value
+simple key1 : explicit value,
+simple key2 : , # Explicit empty
+simple key3, # Empty value
+}
Removed: llvm/trunk/test/YAMLParser/spec-10-11.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-11.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-11.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-11.data (removed)
@@ -1,9 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-[
-? explicit key1 : explicit value,
-? explicit key2 : , # Explicit empty
-? explicit key3, # Implicit empty
-simple key1 : explicit value,
-simple key2 : , # Explicit empty
-]
Added: llvm/trunk/test/YAMLParser/spec-10-11.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-11.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-11.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-11.test Thu May 7 13:08:46 2015
@@ -0,0 +1,9 @@
+# RUN: yaml-bench -canonical %s
+
+[
+? explicit key1 : explicit value,
+? explicit key2 : , # Explicit empty
+? explicit key3, # Implicit empty
+simple key1 : explicit value,
+simple key2 : , # Explicit empty
+]
Removed: llvm/trunk/test/YAMLParser/spec-10-12.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-12.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-12.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-12.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-block: # Block
- # mapping
- key: value
Added: llvm/trunk/test/YAMLParser/spec-10-12.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-12.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-12.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-12.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+block: # Block
+ # mapping
+ key: value
Removed: llvm/trunk/test/YAMLParser/spec-10-13.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-13.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-13.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-13.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-? explicit key # implicit value
-? |
- block key
-: - one # explicit in-line
- - two # block value
Added: llvm/trunk/test/YAMLParser/spec-10-13.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-13.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-13.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-13.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: yaml-bench -canonical %s
+
+? explicit key # implicit value
+? |
+ block key
+: - one # explicit in-line
+ - two # block value
Removed: llvm/trunk/test/YAMLParser/spec-10-14.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-14.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-14.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-14.data (removed)
@@ -1,6 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-plain key: # empty value
-"quoted key":
-- one # explicit next-line
-- two # block value
Added: llvm/trunk/test/YAMLParser/spec-10-14.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-14.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-14.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-14.test Thu May 7 13:08:46 2015
@@ -0,0 +1,6 @@
+# RUN: yaml-bench -canonical %s
+
+plain key: # empty value
+"quoted key":
+- one # explicit next-line
+- two # block value
Removed: llvm/trunk/test/YAMLParser/spec-10-15.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-15.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-15.data (original)
+++ llvm/trunk/test/YAMLParser/spec-10-15.data (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- sun: yellow
-- ? earth: blue
- : moon: white
Added: llvm/trunk/test/YAMLParser/spec-10-15.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/spec-10-15.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/spec-10-15.test (added)
+++ llvm/trunk/test/YAMLParser/spec-10-15.test Thu May 7 13:08:46 2015
@@ -0,0 +1,5 @@
+# RUN: yaml-bench -canonical %s
+
+- sun: yellow
+- ? earth: blue
+ : moon: white
Removed: llvm/trunk/test/YAMLParser/str.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/str.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/str.data (original)
+++ llvm/trunk/test/YAMLParser/str.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- abcd
Added: llvm/trunk/test/YAMLParser/str.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/str.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/str.test (added)
+++ llvm/trunk/test/YAMLParser/str.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+- abcd
Removed: llvm/trunk/test/YAMLParser/timestamp-bugs.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/timestamp-bugs.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/timestamp-bugs.data (original)
+++ llvm/trunk/test/YAMLParser/timestamp-bugs.data (removed)
@@ -1,8 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- 2001-12-14 21:59:43.10 -5:30
-- 2001-12-14 21:59:43.10 +5:30
-- 2001-12-14 21:59:43.00101
-- 2001-12-14 21:59:43+1
-- 2001-12-14 21:59:43-1:30
-- 2005-07-08 17:35:04.517600
Added: llvm/trunk/test/YAMLParser/timestamp-bugs.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/timestamp-bugs.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/timestamp-bugs.test (added)
+++ llvm/trunk/test/YAMLParser/timestamp-bugs.test Thu May 7 13:08:46 2015
@@ -0,0 +1,8 @@
+# RUN: yaml-bench -canonical %s
+
+- 2001-12-14 21:59:43.10 -5:30
+- 2001-12-14 21:59:43.10 +5:30
+- 2001-12-14 21:59:43.00101
+- 2001-12-14 21:59:43+1
+- 2001-12-14 21:59:43-1:30
+- 2005-07-08 17:35:04.517600
Removed: llvm/trunk/test/YAMLParser/timestamp.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/timestamp.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/timestamp.data (original)
+++ llvm/trunk/test/YAMLParser/timestamp.data (removed)
@@ -1,7 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- 2001-12-15T02:59:43.1Z
-- 2001-12-14t21:59:43.10-05:00
-- 2001-12-14 21:59:43.10 -5
-- 2001-12-15 2:59:43.10
-- 2002-12-14
Added: llvm/trunk/test/YAMLParser/timestamp.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/timestamp.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/timestamp.test (added)
+++ llvm/trunk/test/YAMLParser/timestamp.test Thu May 7 13:08:46 2015
@@ -0,0 +1,7 @@
+# RUN: yaml-bench -canonical %s
+
+- 2001-12-15T02:59:43.1Z
+- 2001-12-14t21:59:43.10-05:00
+- 2001-12-14 21:59:43.10 -5
+- 2001-12-15 2:59:43.10
+- 2002-12-14
Removed: llvm/trunk/test/YAMLParser/utf8-implicit.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/utf8-implicit.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/utf8-implicit.data (original)
+++ llvm/trunk/test/YAMLParser/utf8-implicit.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
---- implicit UTF-8
Added: llvm/trunk/test/YAMLParser/utf8-implicit.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/utf8-implicit.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/utf8-implicit.test (added)
+++ llvm/trunk/test/YAMLParser/utf8-implicit.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+--- implicit UTF-8
Removed: llvm/trunk/test/YAMLParser/utf8.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/utf8.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/utf8.data (original)
+++ llvm/trunk/test/YAMLParser/utf8.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
---- UTF-8
Added: llvm/trunk/test/YAMLParser/utf8.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/utf8.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/utf8.test (added)
+++ llvm/trunk/test/YAMLParser/utf8.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+--- UTF-8
Removed: llvm/trunk/test/YAMLParser/value.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/value.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/value.data (original)
+++ llvm/trunk/test/YAMLParser/value.data (removed)
@@ -1,3 +0,0 @@
-# RUN: yaml-bench -canonical %s
-
-- =
Added: llvm/trunk/test/YAMLParser/value.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/value.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/value.test (added)
+++ llvm/trunk/test/YAMLParser/value.test Thu May 7 13:08:46 2015
@@ -0,0 +1,3 @@
+# RUN: yaml-bench -canonical %s
+
+- =
Removed: llvm/trunk/test/YAMLParser/yaml.data
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/yaml.data?rev=236753&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/yaml.data (original)
+++ llvm/trunk/test/YAMLParser/yaml.data (removed)
@@ -1,11 +0,0 @@
-# RUN: yaml-bench -canonical %s | FileCheck %s
-
-- !!yaml '!'
-- !!yaml '&'
-- !!yaml '*'
-
-# CHECK: !!seq [
-# CHECK: !!yaml "!",
-# CHECK: !!yaml "&",
-# CHECK: !!yaml "*",
-# CHECK: ]
Added: llvm/trunk/test/YAMLParser/yaml.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/YAMLParser/yaml.test?rev=236754&view=auto
==============================================================================
--- llvm/trunk/test/YAMLParser/yaml.test (added)
+++ llvm/trunk/test/YAMLParser/yaml.test Thu May 7 13:08:46 2015
@@ -0,0 +1,11 @@
+# RUN: yaml-bench -canonical %s | FileCheck %s
+
+- !!yaml '!'
+- !!yaml '&'
+- !!yaml '*'
+
+# CHECK: !!seq [
+# CHECK: !!yaml "!",
+# CHECK: !!yaml "&",
+# CHECK: !!yaml "*",
+# CHECK: ]
Modified: llvm/trunk/utils/yaml-bench/YAMLBench.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/yaml-bench/YAMLBench.cpp?rev=236754&r1=236753&r2=236754&view=diff
==============================================================================
--- llvm/trunk/utils/yaml-bench/YAMLBench.cpp (original)
+++ llvm/trunk/utils/yaml-bench/YAMLBench.cpp Thu May 7 13:08:46 2015
@@ -19,6 +19,7 @@
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/Timer.h"
+#include "llvm/Support/Process.h"
#include "llvm/Support/YAMLParser.h"
#include "llvm/Support/raw_ostream.h"
#include <system_error>
@@ -52,6 +53,10 @@ static cl::opt<unsigned>
"Do not use more megabytes of memory"),
cl::init(1000));
+cl::opt<cl::boolOrDefault>
+ UseColor("use-color", cl::desc("Emit colored output (default=autodetect)"),
+ cl::init(cl::BOU_UNSET));
+
struct indent {
unsigned distance;
indent(unsigned d) : distance(d) {}
@@ -187,6 +192,9 @@ static std::string createJSONText(size_t
int main(int argc, char **argv) {
llvm::cl::ParseCommandLineOptions(argc, argv);
+ bool ShowColors = UseColor == cl::BOU_UNSET
+ ? sys::Process::StandardOutHasColors()
+ : UseColor == cl::BOU_TRUE;
if (Input.getNumOccurrences()) {
ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =
MemoryBuffer::getFileOrSTDIN(Input);
@@ -200,8 +208,10 @@ int main(int argc, char **argv) {
}
if (DumpCanonical) {
- yaml::Stream stream(Buf.getBuffer(), sm);
+ yaml::Stream stream(Buf.getBuffer(), sm, ShowColors);
dumpStream(stream);
+ if (stream.failed())
+ return 1;
}
}
More information about the llvm-commits
mailing list