blob: 5421d9980caa634df7f42af0a85ed4c4b10de3ed [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);
}