mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
510 B
17 lines
510 B
10 years ago
|
var common = require('../common');
|
||
|
var assert = require('assert');
|
||
|
|
||
|
var zlib = require('zlib');
|
||
|
|
||
|
assert.equal(zlib.Z_OK, 0, 'Z_OK should be 0');
|
||
|
zlib.Z_OK = 1;
|
||
|
assert.equal(zlib.Z_OK, 0, 'Z_OK should be 0');
|
||
|
|
||
|
assert.equal(zlib.codes.Z_OK, 0, 'Z_OK should be 0');
|
||
|
zlib.codes.Z_OK = 1;
|
||
|
assert.equal(zlib.codes.Z_OK, 0, 'zlib.codes.Z_OK should be 0');
|
||
|
zlib.codes = {Z_OK: 1};
|
||
|
assert.equal(zlib.codes.Z_OK, 0, 'zlib.codes.Z_OK should be 0');
|
||
|
|
||
|
assert.ok(Object.isFrozen(zlib.codes), 'zlib.codes should be frozen');
|