blob: 816a742c1064ee5753d9266920f33de1cf96a5e0 [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 this property returns new codec with swapped encoder
* and decoder
* @author sgrekhov@unipro.ru
*/
import "dart:convert";
import "../../../Utils/expect.dart";
main() {
Latin1Codec codec = new Latin1Codec();
Codec inverted = codec.inverted;
Expect.isTrue(inverted.decoder is Latin1Encoder);
Expect.isTrue(inverted.encoder is Latin1Decoder);
}