blob: cd29208ec9c59ebef6542fe5ed40e95fe0201ccc [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.
// @dart = 2.9
/// @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);
}