blob: 73e543e2ee46eb8118c3d71743b787bc21c4d993 [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 Codec<T, S> inverted
/// Inverts this.
/// The encoder and decoder of the resulting codec are swapped.
/// @description Checks that the encoder and decoder of the resulting codec are
/// swapped
/// @author ngl@unipro.ru
import "dart:convert";
import "dart:io";
import "../../../Utils/expect.dart";
main() {
ZLibCodec codec = new ZLibCodec();
Codec inverted = codec.inverted;
Expect.isTrue(inverted.encoder is ZLibDecoder);
Expect.isTrue(inverted.decoder is ZLibEncoder);
}