blob: f956f7a41c40fcfbcf17af468ad6dce09d80f413 [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 bool gzip
/// When true, GZip frames will be added to the compressed data.
/// @description Checks that [gzip] is set correctly with values true or false.
/// @author ngl@unipro.ru
import "dart:io";
import "../../../Utils/expect.dart";
main() {
ZLibEncoder encoder = new ZLibEncoder(gzip: true);
Expect.equals(true, encoder.gzip);
encoder = new ZLibEncoder(gzip: false);
Expect.equals(false, encoder.gzip);
}