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.
22 lines
712 B
22 lines
712 B
// The release object, drand's JSON and the local release archive of spec
|
|
// v0.15 against the copy of testdata/vectors/release.json, testdata/releases/
|
|
// and test/vectors/release_archive_texts.json, compiled to JavaScript, where
|
|
// no file can be read; release_object_vm_test.dart walks the files on the
|
|
// VM.
|
|
@TestOn('!vm')
|
|
library;
|
|
|
|
import 'dart:convert';
|
|
|
|
import 'package:datekeys/datekeys.dart' show fromHex;
|
|
import 'package:test/test.dart';
|
|
|
|
import 'release_object_support.dart';
|
|
import 'vectors/release.g.dart';
|
|
|
|
void main() {
|
|
releaseObjectTests(jsonDecode(releaseJson) as Json, {
|
|
for (final e in releaseFiles.entries) e.key: fromHex(e.value),
|
|
}, jsonDecode(releaseArchiveTextsJson) as Json);
|
|
}
|