Skip to content

Commit

Permalink
✅ Update ProgramExporter test to use export method with ExportFormats…
Browse files Browse the repository at this point in the history
… for CSV output
  • Loading branch information
tcorzo committed Nov 6, 2024
1 parent 911693b commit c041e4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/exporter.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from "jsr:@std/expect";
import { ProgramExporter } from "@/abacus/exporter.ts";
import { ExportFormats, ProgramExporter } from "@/abacus/exporter.ts";
import { Program, Register } from "@/abacus/program.ts";
import { OperationTypes } from "@/abacus/operation_type.ts";

Expand Down Expand Up @@ -55,7 +55,7 @@ Deno.test("ProgramExporter should export a program to CSV format", () => {
'ADDR,VALUE,COMMENT\n' +
'201,0000,Result';

const result = ProgramExporter.exportToCSV(program);
const result = ProgramExporter.export(program, ExportFormats.CSV);
expect(result).toEqual(expected);
});

Expand All @@ -82,6 +82,6 @@ Deno.test("ProgramExporter should handle empty program sections", () => {
'DATA,,\n' +
'ADDR,VALUE,COMMENT';

const result = ProgramExporter.exportToCSV(program);
const result = ProgramExporter.export(program, ExportFormats.CSV);
expect(result).toEqual(expected);
});

0 comments on commit c041e4c

Please sign in to comment.