Sha256: 4c9a45b0b92af09182aeba5d98b87de261522e5a68eaf097d418911de4cd0143
Contents?: true
Size: 592 Bytes
Versions: 3
Compression:
Stored size: 592 Bytes
Contents
require 'introspection_test_helper' describe GObjectIntrospection::IFunctionInfo do describe "#safe_name" do it "keeps lower case names lower case" do stub(ptr = Object.new).null? { false } info = GObjectIntrospection::IFunctionInfo.wrap ptr stub(info).name { "foo" } assert_equal "foo", info.safe_name end it "returns a non-empty string if name is empty" do stub(ptr = Object.new).null? { false } info = GObjectIntrospection::IFunctionInfo.wrap ptr stub(info).name { "" } assert_equal "_", info.safe_name end end end
Version data entries
3 entries across 3 versions & 1 rubygems