summaryrefslogtreecommitdiff
path: root/libs/jasmine-1.2.0/YamlSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'libs/jasmine-1.2.0/YamlSpec.js')
-rw-r--r--libs/jasmine-1.2.0/YamlSpec.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/libs/jasmine-1.2.0/YamlSpec.js b/libs/jasmine-1.2.0/YamlSpec.js
new file mode 100644
index 0000000..7f924f1
--- /dev/null
+++ b/libs/jasmine-1.2.0/YamlSpec.js
@@ -0,0 +1,22 @@
+describe("YAML parsing", function() {
+ var t;
+ for ( var i = 0; i < YAML.parseTests.length; i++){
+
+ t = YAML.parseTests[i];
+
+ it(t.title, function() {
+ expect(YAML.decode(t.input)).toEqual(t.output);
+ });
+ }
+});
+describe("YAML dumping and parsing", function() {
+ var t;
+ for ( var i = 0; i < YAML.parseTests.length; i++){
+
+ t = YAML.parseTests[i];
+
+ it(t.title, function() {
+ expect(YAML.decode(YAML.encode(t.output))).toEqual(t.output);
+ });
+ }
+}); \ No newline at end of file