Skip to content

Commit

Permalink
remove redundant test table
Browse files Browse the repository at this point in the history
  • Loading branch information
rmgaray authored and itsfarseen committed Oct 10, 2024
1 parent 0ab66f9 commit 89579d1
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions tests/api/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const cdlTxt = fs.readFileSync("csl-types/cardano-data-lite.d.ts", { "encoding":

// Arrays of parameters for the tests
let compareToCslTests: Array<TestParameters> = [];
let compareToCdlTests: Array<TestParameters> = [];

// Paths where the reports will be saved
const missingClassesPath = "tests/reports/api_missing_classes.csv";
Expand Down Expand Up @@ -287,7 +286,7 @@ let missingMethodsCsv = "Missing method\n"
missingMethodsCsv += missingMethods.join("\n");
fs.writeFileSync(missingMethodsPath, missingMethodsCsv);

// We construct the test tables
// We construct the test table
let n: number = 0;
for (const cls of cslClasses) {
for (const method of cls.methods) {
Expand All @@ -296,16 +295,6 @@ for (const cls of cslClasses) {
}
}

n = 0;
for (const cls of cdlClasses) {
for (const method of cls.methods) {
compareToCdlTests.push({ n: n, class: cls.name, comparedToMethod: method })
n += 1;
}
}
console.log("compareToCslTests.length: ", compareToCslTests.length)
console.log("compareToCdlTests.length: ", compareToCdlTests.length)

// We open a report file to write down each method comparison failure as we find it
let methodFailuresFile = fs.openSync(methodFailuresPath, "w");
fs.writeFileSync(methodFailuresFile, "Affected class,Method,Failure reason,Failure message\n");
Expand Down

0 comments on commit 89579d1

Please sign in to comment.