// 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); }); }