diff --git a/tests/excellon-drill/__snapshots__/excellon-drill-builder.test.ts.snap b/tests/excellon-drill/__snapshots__/excellon-drill-builder.test.ts.snap index 57d51bd..7963139 100644 --- a/tests/excellon-drill/__snapshots__/excellon-drill-builder.test.ts.snap +++ b/tests/excellon-drill/__snapshots__/excellon-drill-builder.test.ts.snap @@ -1,2742 +1,6 @@ // Bun Snapshot v1, https://goo.gl/fbAQLP -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` -[ - { - "command_code": "M48", - }, - { - "command_code": "header_comment", - "text": "DRILL file {tscircuit} date 2024-04-09T20:34:41-0700", - }, - { - "command_code": "header_comment", - "text": "FORMAT={-:-/ absolute / inch / decimal}", - }, - { - "attribute_name": "TF.CreationDate", - "attribute_value": "2024-04-09T20:34:41-07:00", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.GenerationSoftware", - "attribute_value": "Kicad,Pcbnew,8.0.1", - "command_code": "header_attribute", - }, - { - "attribute_name": "TF.FileFunction", - "attribute_value": "Plated,1,2,PTH", - "command_code": "header_attribute", - }, - { - "command_code": "FMAT", - "format": 2, - }, - { - "command_code": "header_comment", - "text": "TA.AperFunction,Plated,PTH,ComponentDrill", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "header_comment", - "text": "End of header", - }, - { - "command_code": "G90", - }, - { - "command_code": "G05", - }, - { - "command_code": "define_tool", - "diameter": 0.0394, - "tool_number": 1, - }, - { - "command_code": "drill_at", - "x": 4.9197, - "y": -2.9724, - }, - { - "command_code": "drill_at", - "x": 5.0197, - "y": -2.9724, - }, - { - "command_code": "M30", - }, -] -`; - -exports[`test that we can recreate an example drill file: excellon-drill-builder 1`] = ` +exports[`test that we can recreate an example drill file 1`] = ` [ { "command_code": "M48", diff --git a/tests/excellon-drill/excellon-drill-builder.test.ts b/tests/excellon-drill/excellon-drill-builder.test.ts index 7e67df5..383a4ef 100644 --- a/tests/excellon-drill/excellon-drill-builder.test.ts +++ b/tests/excellon-drill/excellon-drill-builder.test.ts @@ -36,7 +36,7 @@ test("test that we can recreate an example drill file", async () => { .add("M30", {}) .build() - expect(output_commands).toMatchSnapshot("excellon-drill-builder") + expect(output_commands).toMatchSnapshot() // t.is( // output_text, // `M48