blob: 9282f180beb96a23e963d69fddb1402d7d24dcc3 [file] [log] [blame]
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// @assertion
/// ZLibEncoder({
/// bool gzip: false,
/// int level: ZLibOption.DEFAULT_LEVEL,
/// int windowBits: ZLibOption.DEFAULT_WINDOW_BITS,
/// int memLevel: ZLibOption.DEFAULT_MEM_LEVEL,
/// int strategy: ZLibOption.strategyDefault,
/// List<int> dictionary: null,
/// bool raw: false
/// })
/// @description Checks that this constructor creates a new ZLibEncoder object
/// with specified [level] parameters.
/// @author ngl@unipro.ru
import "dart:io";
import "../../../Utils/expect.dart";
main() {
ZLibEncoder v = new ZLibEncoder(level: -1);
Expect.equals(false, v.gzip);
Expect.equals(-1, v.level);
Expect.equals(ZLibOption.defaultWindowBits, v.windowBits);
Expect.equals(ZLibOption.defaultMemLevel, v.memLevel);
Expect.equals(ZLibOption.strategyDefault, v.strategy);
Expect.equals(null, v.dictionary);
Expect.equals(false, v.raw);
}