You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dateKeys-dart/test/capsule_interop_vm_test.dart

33 lines
941 B

// The capsules that this library writes, opened by Go: every sample of
// test/vectors/capsule_interop.json, the seeded ones written again (see
// capsule_interop_cases.dart).
@TestOn('vm')
library;
import 'dart:convert';
import 'dart:io';
import 'package:test/test.dart';
import 'capsule_interop_cases.dart';
import 'capsule_writer_support.dart';
import 'vectors/capsule_interop.g.dart';
void main() {
final doc = jsonDecode(
File('test/vectors/capsule_interop.json').readAsStringSync(),
) as Json;
test('the Dart constant holds the samples not marked node false', () {
expect((jsonDecode(capsuleInteropJson) as Json)['samples'], [
for (final s in listOf(doc['samples']))
if (!(s['name']! as String).contains('fourteen') &&
!(s['name']! as String).contains('MiB') &&
!(s['name']! as String).contains('two hundred'))
s,
]);
});
interopCases(doc, rewrite: true);
}

Powered by TurnKey Linux.