blob: 2fc1c43bce36d49a1332ed4468a6bd9966e4566b [file] [log] [blame]
// Copyright (c) 2020, 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 'package:ffigen/src/header_parser.dart';
import 'package:path/path.dart' as path;
import 'package:test/test.dart';
import '../test_utils.dart';
void main() {
group('cjson_example_test', () {
test('c_json', () {
final config = testConfigFromPath(
path.join(packagePathForTests, 'example', 'c_json', 'config.yaml'),
);
final library = parse(testContext(config));
matchLibraryWithExpected(library, 'example_c_json.dart', [
config.output.dartFile.toFilePath(),
]);
});
});
}