<commit_before>require '../lib/CNCHelper.rb'
require './spec_helper.rb'

RSpec.describe CNCHelper do
	
#put tests here

end<commit_msg>Unit test for CNCHelper: generate a rapid feed toolpath to a safe starting position<commit_after>require '../lib/CNCHelper.rb'
require './spec_helper.rb'

RSpec.describe CNCHelper do
	
  it "generates a rapid feed toolpath to a safe starting position of negative 2x the tool radius along the X and Y axes" do
    helper = CNCHelper.new(0.125, 0.225, 15.0, 0.25)
    expect {helper.program_before_face_milling}.to output(/G0X-0.25Y-0.25\n/).to_stdout	
  end

end
{'fraction_non_alphanumeric': 0.10234899328859061, 'fraction_numerical': 0.03691275167785235, 'mean_word_length': 4.016806722689076, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5865532', 'n_tokens_mistral': 230, 'n_tokens_neox': 207, 'n_words': 64}