Skip to content

Commit 3b4cdfe

Browse files
committed
Add go_file_name test
1 parent 7cf6b63 commit 3b4cdfe

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# frozen_string_literal: true
2+
3+
RSpec.describe RubyHToGo::GeneratorHelper do
4+
include RubyHToGo::GeneratorHelper
5+
6+
describe "#go_file_name" do
7+
subject { go_file_name(header_dir:, ruby_header_file:) }
8+
9+
let(:header_dir) { "/path/to/include" }
10+
let(:ruby_header_file) { "/path/to/include/ruby/internal/intern/thread.h" }
11+
12+
it { should eq "ruby-internal-intern-thread.go" }
13+
end
14+
end

0 commit comments

Comments
 (0)