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.
26 lines
798 B
26 lines
798 B
|
1 day ago
|
// The vectors of stage 7b against their files: the Dart constants that the
|
||
|
|
// tests compiled to JavaScript read are test/vectors/locator_seal.json and
|
||
|
|
// seal_interop.json byte for byte, as tool/locator_seal_go_vectors.go and
|
||
|
|
// tool/seal_interop_go_verdicts.go write them.
|
||
|
|
@TestOn('vm')
|
||
|
|
library;
|
||
|
|
|
||
|
|
import 'dart:io';
|
||
|
|
|
||
|
|
import 'package:test/test.dart';
|
||
|
|
|
||
|
|
import 'vectors/locator_seal.g.dart';
|
||
|
|
import 'vectors/seal_interop.g.dart';
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
test('locator_seal.g.dart holds locator_seal.json', () {
|
||
|
|
final file = File('test/vectors/locator_seal.json').readAsStringSync();
|
||
|
|
expect(locatorSealJson, file);
|
||
|
|
});
|
||
|
|
|
||
|
|
test('seal_interop.g.dart holds seal_interop.json', () {
|
||
|
|
final file = File('test/vectors/seal_interop.json').readAsStringSync();
|
||
|
|
expect(sealInteropJson, file);
|
||
|
|
});
|
||
|
|
}
|