// Copyright (c) 2024, 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. import 'dart:convert'; import 'package:convert/convert.dart'; import 'package:test/test.dart'; void main() { group('IdentityCodec', () { test('encode', () { const codec = IdentityCodec(); expect(codec.encode('hello-world'), equals('hello-world')); }); test('decode', () { const codec = IdentityCodec(); expect(codec.decode('hello-world'), equals('hello-world')); }); test('fuse', () { const stringCodec = IdentityCodec(); final utf8Strings = stringCodec.fuse(utf8); expect(utf8Strings, equals(utf8)); }); }); }