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/primitives_vm_test.dart

19 lines
511 B

// The copy of test/vectors/primitives.json that primitives_test.dart reads,
// a Dart constant for the tests compiled to JavaScript, is the JSON file
// byte for byte: tool/gen_primitive_vectors.go writes both.
@TestOn('vm')
library;
import 'dart:io';
import 'package:test/test.dart';
import 'vectors/primitives.g.dart';
void main() {
test('primitives.g.dart holds primitives.json', () {
final file = File('test/vectors/primitives.json').readAsStringSync();
expect(primitivesJson, file);
});
}

Powered by TurnKey Linux.