From c041e4c00b9fb0a390f51af0e5c68e37d7ccf1b1 Mon Sep 17 00:00:00 2001 From: tcorzo Date: Wed, 6 Nov 2024 02:18:36 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Update=20ProgramExporter=20test=20t?= =?UTF-8?q?o=20use=20export=20method=20with=20ExportFormats=20for=20CSV=20?= =?UTF-8?q?output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/exporter.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/exporter.test.ts b/test/exporter.test.ts index d6bf1fc..0305aaf 100644 --- a/test/exporter.test.ts +++ b/test/exporter.test.ts @@ -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"; @@ -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); }); @@ -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); });