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.
27 lines
787 B
27 lines
787 B
// The vectors of the age writer against their files: the Dart constants
|
|
// that the tests compiled to JavaScript read are test/vectors/
|
|
// age_writer.json and age_interop.json byte for byte, as
|
|
// tool/age_writer_go_vectors.go and tool/age_interop_go_verdicts.go write
|
|
// them.
|
|
@TestOn('vm')
|
|
library;
|
|
|
|
import 'dart:io';
|
|
|
|
import 'package:test/test.dart';
|
|
|
|
import 'vectors/age_interop.g.dart';
|
|
import 'vectors/age_writer.g.dart';
|
|
|
|
void main() {
|
|
test('age_writer.g.dart holds age_writer.json', () {
|
|
final file = File('test/vectors/age_writer.json').readAsStringSync();
|
|
expect(ageWriterJson, file);
|
|
});
|
|
|
|
test('age_interop.g.dart holds age_interop.json', () {
|
|
final file = File('test/vectors/age_interop.json').readAsStringSync();
|
|
expect(ageInteropJson, file);
|
|
});
|
|
}
|