Add speeduino 202201 (#140)

This commit is contained in:
Piotr Rogowski 2022-10-28 23:44:37 +02:00 committed by GitHub
parent 7eca2bfb8b
commit 837555067b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 146367 additions and 3 deletions

5313
test/data/ini/202201.ini Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

70525
test/data/tmp/202201.yml Normal file

File diff suppressed because it is too large Load Diff

70525
test/data/yaml/202201.yml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -9,6 +9,7 @@ const { INI } = require('../dist');
const VERSIONS = [
'202207',
'202202',
'202201',
'202108',
'202103',
'202012',
@ -45,13 +46,12 @@ const run = (generateOnly) => {
const yamlNew = md5YamlNew.update(yamlContent).digest('hex');
const jsonNew = md5JsonNew.update(jsonContent).digest('hex');
const { yamlOld, jsonOld } = hashReference(version);
// write temp files to disk so we can debug more easily
fs.writeFileSync(pathFor(`tmp/${version}.yml`), yamlContent);
fs.writeFileSync(pathFor(`tmp/${version}.json`), jsonContent);
if (!generateOnly) {
const { yamlOld, jsonOld } = hashReference(version);
assert.equal(yamlNew, yamlOld, `Generated file ${version}.yaml looks different than expected`);
assert.equal(jsonNew, jsonOld, `Generated file ${version}.json looks different than expected`);
}