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

29 lines
762 B

// Steps 10 and 11 of spec §63 against testdata/vectors/tlock_steps.json, read
// from the file, and the copy of the file that tlock_steps_test.dart walks
// compiled to JavaScript (test/vectors/tlock_steps.g.dart, written by
// tool/tlock_steps_copy.dart).
@TestOn('vm')
library;
import 'dart:convert';
import 'dart:io';
import 'package:test/test.dart';
import 'tlock_steps_support.dart';
import 'vectors/tlock_steps.g.dart';
void main() {
final text = File('testdata/vectors/tlock_steps.json').readAsStringSync();
test('tlock_steps.g.dart holds testdata/vectors/tlock_steps.json', () {
expect(
tlockStepsJson,
text,
reason: 'run dart run tool/tlock_steps_copy.dart',
);
});
tlockStepsTests(jsonDecode(text) as Json);
}

Powered by TurnKey Linux.