Skip to content

Commit

Permalink
add missed test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed Jul 8, 2017
1 parent b76645e commit 2cd3b01
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/issues/0350.js
@@ -0,0 +1,13 @@
'use strict';


var assert = require('assert');
var yaml = require('../../');
var readFileSync = require('fs').readFileSync;


test('should allow cast integers as !!float', function () {
var data = yaml.safeLoadAll(readFileSync(require('path').join(__dirname, '/0350.yml'), 'utf8'));

assert.deepEqual(data, [ { a: 1 }, { b: 2 } ]);
});
4 changes: 4 additions & 0 deletions test/issues/0350.yml
@@ -0,0 +1,4 @@
---
a: 1
---
b: 2

0 comments on commit 2cd3b01

Please sign in to comment.