0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-25 08:19:38 +01:00
nodejs/test/parallel/test-fs-read-file-sync.js

13 lines
315 B
JavaScript
Raw Normal View History

2010-12-05 00:20:34 +01:00
var common = require('../common');
var assert = require('assert');
var path = require('path');
var fs = require('fs');
2010-12-05 00:20:34 +01:00
var fn = path.join(common.fixturesDir, 'elipses.txt');
var s = fs.readFileSync(fn, 'utf8');
for (var i = 0; i < s.length; i++) {
assert.equal('\u2026', s[i]);
}
assert.equal(10000, s.length);