gir_ffi 0.14.1 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +21 -0
- data/Gemfile +6 -4
- data/README.md +4 -4
- data/Rakefile +5 -5
- data/lib/ffi-glib/array.rb +14 -4
- data/lib/ffi-glib/byte_array.rb +7 -2
- data/lib/ffi-glib/container_class_methods.rb +1 -1
- data/lib/ffi-glib/error.rb +1 -1
- data/lib/ffi-glib/hash_table.rb +3 -3
- data/lib/ffi-glib/list.rb +1 -1
- data/lib/ffi-glib/list_methods.rb +1 -1
- data/lib/ffi-glib/main_loop.rb +3 -3
- data/lib/ffi-glib/ptr_array.rb +30 -8
- data/lib/ffi-glib/s_list.rb +1 -1
- data/lib/ffi-glib/variant.rb +1 -1
- data/lib/ffi-glib.rb +16 -16
- data/lib/ffi-gobject/object.rb +23 -32
- data/lib/ffi-gobject/param_spec.rb +1 -1
- data/lib/ffi-gobject/ruby_closure.rb +2 -2
- data/lib/ffi-gobject/value.rb +37 -28
- data/lib/ffi-gobject.rb +13 -13
- data/lib/ffi-gobject_introspection/gobject_type_init.rb +2 -2
- data/lib/ffi-gobject_introspection/i_arg_info.rb +2 -2
- data/lib/ffi-gobject_introspection/i_base_info.rb +27 -17
- data/lib/ffi-gobject_introspection/i_callable_info.rb +4 -4
- data/lib/ffi-gobject_introspection/i_constant_info.rb +2 -2
- data/lib/ffi-gobject_introspection/i_enum_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_field_info.rb +1 -1
- data/lib/ffi-gobject_introspection/i_function_info.rb +1 -1
- data/lib/ffi-gobject_introspection/i_interface_info.rb +1 -1
- data/lib/ffi-gobject_introspection/i_object_info.rb +2 -2
- data/lib/ffi-gobject_introspection/i_property_info.rb +2 -2
- data/lib/ffi-gobject_introspection/i_repository.rb +9 -6
- data/lib/ffi-gobject_introspection/i_struct_info.rb +2 -1
- data/lib/ffi-gobject_introspection/i_type_info.rb +13 -7
- data/lib/ffi-gobject_introspection/i_unresolved_info.rb +1 -1
- data/lib/ffi-gobject_introspection/i_vfunc_info.rb +1 -1
- data/lib/ffi-gobject_introspection/lib.rb +30 -19
- data/lib/ffi-gobject_introspection/strv.rb +1 -1
- data/lib/ffi-gobject_introspection.rb +20 -20
- data/lib/gir_ffi/allocation_helper.rb +1 -1
- data/lib/gir_ffi/arg_helper.rb +4 -4
- data/lib/gir_ffi/{in_out_pointer.rb → array_element_convertor.rb} +16 -23
- data/lib/gir_ffi/boolean.rb +1 -1
- data/lib/gir_ffi/boxed_base.rb +1 -1
- data/lib/gir_ffi/builder.rb +18 -10
- data/lib/gir_ffi/builders/argument_builder.rb +17 -17
- data/lib/gir_ffi/builders/base_argument_builder.rb +1 -0
- data/lib/gir_ffi/builders/base_method_builder.rb +7 -7
- data/lib/gir_ffi/builders/base_return_value_builder.rb +1 -1
- data/lib/gir_ffi/builders/base_type_builder.rb +1 -1
- data/lib/gir_ffi/builders/c_to_ruby_convertor.rb +5 -5
- data/lib/gir_ffi/builders/callback_argument_builder.rb +8 -8
- data/lib/gir_ffi/builders/callback_builder.rb +3 -3
- data/lib/gir_ffi/builders/callback_return_value_builder.rb +2 -2
- data/lib/gir_ffi/builders/closure_argument_builder.rb +1 -1
- data/lib/gir_ffi/builders/closure_return_value_builder.rb +1 -1
- data/lib/gir_ffi/builders/constant_builder.rb +1 -1
- data/lib/gir_ffi/builders/constructor_builder.rb +9 -9
- data/lib/gir_ffi/builders/enum_builder.rb +2 -2
- data/lib/gir_ffi/builders/field_builder.rb +16 -15
- data/lib/gir_ffi/builders/flags_builder.rb +2 -2
- data/lib/gir_ffi/builders/full_c_to_ruby_convertor.rb +1 -1
- data/lib/gir_ffi/builders/function_builder.rb +11 -5
- data/lib/gir_ffi/builders/initializer_builder.rb +3 -3
- data/lib/gir_ffi/builders/initializer_return_value_builder.rb +2 -2
- data/lib/gir_ffi/builders/interface_builder.rb +2 -2
- data/lib/gir_ffi/builders/mapping_method_builder.rb +9 -9
- data/lib/gir_ffi/builders/marshalling_method_builder.rb +7 -7
- data/lib/gir_ffi/builders/method_template.rb +1 -1
- data/lib/gir_ffi/builders/module_builder.rb +4 -6
- data/lib/gir_ffi/builders/object_builder.rb +6 -6
- data/lib/gir_ffi/builders/property_argument_builder.rb +1 -1
- data/lib/gir_ffi/builders/property_builder.rb +13 -12
- data/lib/gir_ffi/builders/property_return_value_builder.rb +1 -1
- data/lib/gir_ffi/builders/registered_type_builder.rb +14 -5
- data/lib/gir_ffi/builders/return_value_builder.rb +4 -4
- data/lib/gir_ffi/builders/ruby_to_c_convertor.rb +6 -6
- data/lib/gir_ffi/builders/signal_closure_builder.rb +2 -2
- data/lib/gir_ffi/builders/struct_builder.rb +4 -4
- data/lib/gir_ffi/builders/struct_like.rb +1 -1
- data/lib/gir_ffi/builders/type_builder.rb +12 -12
- data/lib/gir_ffi/builders/unintrospectable_boxed_builder.rb +2 -2
- data/lib/gir_ffi/builders/unintrospectable_builder.rb +2 -2
- data/lib/gir_ffi/builders/union_builder.rb +4 -4
- data/lib/gir_ffi/builders/user_defined_builder.rb +2 -2
- data/lib/gir_ffi/builders/vfunc_argument_builder.rb +1 -1
- data/lib/gir_ffi/builders/vfunc_builder.rb +6 -6
- data/lib/gir_ffi/builders/with_layout.rb +2 -2
- data/lib/gir_ffi/callback_base.rb +1 -1
- data/lib/gir_ffi/class_base.rb +5 -5
- data/lib/gir_ffi/core.rb +19 -20
- data/lib/gir_ffi/enum_base.rb +1 -1
- data/lib/gir_ffi/enum_like_base.rb +2 -2
- data/lib/gir_ffi/error_argument_info.rb +2 -2
- data/lib/gir_ffi/error_type_info.rb +1 -1
- data/lib/gir_ffi/ffi_ext/pointer.rb +1 -1
- data/lib/gir_ffi/ffi_ext.rb +1 -1
- data/lib/gir_ffi/flags_base.rb +1 -1
- data/lib/gir_ffi/in_pointer.rb +10 -0
- data/lib/gir_ffi/info_ext/full_type_name.rb +3 -3
- data/lib/gir_ffi/info_ext/i_arg_info.rb +1 -1
- data/lib/gir_ffi/info_ext/i_callable_info.rb +1 -1
- data/lib/gir_ffi/info_ext/i_callback_info.rb +1 -1
- data/lib/gir_ffi/info_ext/i_field_info.rb +1 -1
- data/lib/gir_ffi/info_ext/i_function_info.rb +1 -1
- data/lib/gir_ffi/info_ext/i_property_info.rb +2 -2
- data/lib/gir_ffi/info_ext/i_registered_type_info.rb +4 -5
- data/lib/gir_ffi/info_ext/i_signal_info.rb +7 -3
- data/lib/gir_ffi/info_ext/i_type_info.rb +48 -26
- data/lib/gir_ffi/info_ext/i_unresolved_info.rb +1 -1
- data/lib/gir_ffi/info_ext/i_value_info.rb +2 -2
- data/lib/gir_ffi/info_ext/i_vfunc_info.rb +2 -2
- data/lib/gir_ffi/info_ext/safe_constant_name.rb +8 -8
- data/lib/gir_ffi/info_ext/safe_function_name.rb +2 -2
- data/lib/gir_ffi/info_ext.rb +15 -15
- data/lib/gir_ffi/interface_base.rb +3 -3
- data/lib/gir_ffi/lib_c.rb +1 -1
- data/lib/gir_ffi/method_stubber.rb +1 -1
- data/lib/gir_ffi/module_base.rb +1 -1
- data/lib/gir_ffi/object_base.rb +3 -4
- data/lib/gir_ffi/receiver_argument_info.rb +1 -1
- data/lib/gir_ffi/receiver_type_info.rb +2 -2
- data/lib/gir_ffi/registered_type_base.rb +1 -1
- data/lib/gir_ffi/sized_array.rb +4 -2
- data/lib/gir_ffi/struct.rb +1 -1
- data/lib/gir_ffi/struct_base.rb +1 -1
- data/lib/gir_ffi/type_map.rb +2 -23
- data/lib/gir_ffi/unintrospectable_boxed_info.rb +2 -2
- data/lib/gir_ffi/unintrospectable_type_info.rb +1 -1
- data/lib/gir_ffi/union.rb +1 -1
- data/lib/gir_ffi/union_base.rb +1 -1
- data/lib/gir_ffi/user_defined_object_info.rb +6 -2
- data/lib/gir_ffi/user_defined_property_info.rb +33 -33
- data/lib/gir_ffi/version.rb +1 -1
- data/lib/gir_ffi-base/gobject/lib.rb +3 -2
- data/lib/gir_ffi-base/gobject.rb +26 -25
- data/lib/gir_ffi-base.rb +1 -1
- data/lib/gir_ffi.rb +3 -3
- data/tasks/test.rake +3 -2
- data/test/base_test_helper.rb +16 -9
- data/test/ffi-glib/array_test.rb +71 -56
- data/test/ffi-glib/byte_array_test.rb +13 -7
- data/test/ffi-glib/bytes_test.rb +24 -19
- data/test/ffi-glib/closure_test.rb +11 -11
- data/test/ffi-glib/destroy_notify_test.rb +6 -6
- data/test/ffi-glib/hash_table_test.rb +27 -27
- data/test/ffi-glib/list_test.rb +22 -22
- data/test/ffi-glib/main_loop_test.rb +12 -12
- data/test/ffi-glib/ptr_array_test.rb +39 -39
- data/test/ffi-glib/ruby_closure_test.rb +10 -10
- data/test/ffi-glib/s_list_test.rb +20 -20
- data/test/ffi-glib/strv_test.rb +19 -19
- data/test/ffi-glib/variant_test.rb +5 -5
- data/test/ffi-gobject/gobject_test.rb +48 -44
- data/test/ffi-gobject/object_class_test.rb +8 -8
- data/test/ffi-gobject/object_test.rb +49 -67
- data/test/ffi-gobject/param_spec_test.rb +12 -12
- data/test/ffi-gobject/value_test.rb +145 -125
- data/test/ffi-gobject_introspection/gobject_type_init_test.rb +8 -8
- data/test/ffi-gobject_introspection/i_base_info_test.rb +15 -16
- data/test/ffi-gobject_introspection/i_constant_info_test.rb +9 -13
- data/test/ffi-gobject_introspection/i_enum_info_test.rb +7 -7
- data/test/ffi-gobject_introspection/i_function_info_test.rb +1 -1
- data/test/ffi-gobject_introspection/i_interface_info_test.rb +10 -10
- data/test/ffi-gobject_introspection/i_object_info_test.rb +23 -23
- data/test/ffi-gobject_introspection/i_property_info_test.rb +19 -19
- data/test/ffi-gobject_introspection/i_registered_type_info_test.rb +10 -10
- data/test/ffi-gobject_introspection/i_repository_test.rb +31 -31
- data/test/ffi-gobject_introspection/i_struct_info_test.rb +10 -10
- data/test/ffi-gobject_introspection/i_type_info_test.rb +12 -15
- data/test/ffi-gobject_introspection/i_union_info_test.rb +7 -7
- data/test/ffi-gobject_introspection/i_vfunc_info_test.rb +16 -16
- data/test/ffi-gobject_introspection/lib_test.rb +3 -3
- data/test/ffi-gobject_introspection/strv_test.rb +9 -9
- data/test/ffi-gobject_test.rb +44 -44
- data/test/gir_ffi/allocation_helper_test.rb +13 -13
- data/test/gir_ffi/arg_helper_test.rb +63 -64
- data/test/gir_ffi/boolean_test.rb +20 -20
- data/test/gir_ffi/boxed_base_test.rb +18 -18
- data/test/gir_ffi/builder_test.rb +115 -93
- data/test/gir_ffi/builders/argument_builder_test.rb +280 -286
- data/test/gir_ffi/builders/base_argument_builder_test.rb +1 -1
- data/test/gir_ffi/builders/callback_argument_builder_test.rb +53 -56
- data/test/gir_ffi/builders/callback_builder_test.rb +71 -72
- data/test/gir_ffi/builders/callback_return_value_builder_test.rb +36 -40
- data/test/gir_ffi/builders/constant_builder_test.rb +1 -1
- data/test/gir_ffi/builders/constructor_builder_test.rb +10 -10
- data/test/gir_ffi/builders/enum_builder_test.rb +10 -10
- data/test/gir_ffi/builders/field_builder_test.rb +42 -42
- data/test/gir_ffi/builders/function_builder_test.rb +236 -224
- data/test/gir_ffi/builders/initializer_builder_test.rb +14 -14
- data/test/gir_ffi/builders/interface_builder_test.rb +9 -9
- data/test/gir_ffi/builders/module_builder_test.rb +18 -18
- data/test/gir_ffi/builders/object_builder_test.rb +38 -38
- data/test/gir_ffi/builders/property_builder_test.rb +91 -94
- data/test/gir_ffi/builders/registered_type_builder_test.rb +35 -11
- data/test/gir_ffi/builders/return_value_builder_test.rb +215 -222
- data/test/gir_ffi/builders/signal_closure_builder_test.rb +122 -113
- data/test/gir_ffi/builders/struct_builder_test.rb +32 -32
- data/test/gir_ffi/builders/unintrospectable_boxed_builder_test.rb +8 -14
- data/test/gir_ffi/builders/unintrospectable_builder_test.rb +23 -23
- data/test/gir_ffi/builders/union_builder_test.rb +12 -15
- data/test/gir_ffi/builders/user_defined_builder_test.rb +147 -147
- data/test/gir_ffi/builders/vfunc_argument_builder_test.rb +40 -40
- data/test/gir_ffi/builders/vfunc_builder_test.rb +145 -157
- data/test/gir_ffi/callback_base_test.rb +9 -9
- data/test/gir_ffi/class_base_test.rb +49 -51
- data/test/gir_ffi/core_test.rb +32 -32
- data/test/gir_ffi/enum_base_test.rb +19 -19
- data/test/gir_ffi/error_type_info_test.rb +23 -23
- data/test/gir_ffi/ffi_ext/pointer_test.rb +5 -5
- data/test/gir_ffi/g_type_test.rb +11 -11
- data/test/gir_ffi/in_pointer_test.rb +70 -50
- data/test/gir_ffi/info_ext/i_callable_info_test.rb +5 -5
- data/test/gir_ffi/info_ext/i_callback_info_test.rb +4 -4
- data/test/gir_ffi/info_ext/i_field_info_test.rb +6 -6
- data/test/gir_ffi/info_ext/i_function_info_test.rb +17 -17
- data/test/gir_ffi/info_ext/i_signal_info_test.rb +8 -8
- data/test/gir_ffi/info_ext/i_type_info_test.rb +229 -215
- data/test/gir_ffi/info_ext/i_unresolved_info_test.rb +4 -4
- data/test/gir_ffi/info_ext/safe_constant_name_test.rb +8 -8
- data/test/gir_ffi/info_ext/safe_function_name_test.rb +8 -8
- data/test/gir_ffi/interface_base_test.rb +8 -8
- data/test/gir_ffi/method_stubber_test.rb +19 -19
- data/test/gir_ffi/object_base_test.rb +19 -19
- data/test/gir_ffi/object_store_test.rb +13 -13
- data/test/gir_ffi/receiver_argument_info_test.rb +15 -15
- data/test/gir_ffi/sized_array_test.rb +68 -68
- data/test/gir_ffi/struct_base_test.rb +8 -8
- data/test/gir_ffi/struct_like_base_test.rb +64 -64
- data/test/gir_ffi/type_map_test.rb +6 -6
- data/test/gir_ffi/unintrospectable_type_info_test.rb +33 -33
- data/test/gir_ffi/union_base_test.rb +8 -8
- data/test/gir_ffi/user_defined_object_info_test.rb +34 -34
- data/test/gir_ffi/user_defined_property_info_test.rb +16 -16
- data/test/gir_ffi/variable_name_generator_test.rb +8 -8
- data/test/gir_ffi/version_test.rb +4 -4
- data/test/gir_ffi/zero_terminated_test.rb +34 -34
- data/test/gir_ffi_test_helper.rb +3 -3
- data/test/integration/callback_exceptions_test.rb +17 -21
- data/test/integration/derived_classes_test.rb +13 -13
- data/test/integration/generated_everything_test.rb +224 -224
- data/test/integration/generated_gimarshallingtests_test.rb +1118 -1017
- data/test/integration/generated_gio_test.rb +36 -36
- data/test/integration/generated_glib_test.rb +4 -6
- data/test/integration/generated_gobject_test.rb +43 -35
- data/test/integration/generated_gst_test.rb +16 -16
- data/test/integration/generated_gtk_source_test.rb +22 -17
- data/test/integration/generated_gtop_test.rb +8 -15
- data/test/integration/generated_pango_ft2_test.rb +2 -2
- data/test/integration/generated_pango_test.rb +4 -4
- data/test/integration/generated_regress_test.rb +1809 -1621
- data/test/integration/generated_secret_test.rb +8 -11
- data/test/integration/generated_utility_test.rb +81 -81
- data/test/integration/generated_warnlib_test.rb +13 -19
- data/test/integration/method_lookup_test.rb +6 -6
- data/test/introspection_test_helper.rb +48 -7
- data/test/minitest/stats_plugin.rb +1 -1
- metadata +11 -28
- data/lib/ffi-glib/array_methods.rb +0 -16
- data/test/gir_ffi/in_out_pointer_test.rb +0 -56
@@ -1,31 +1,31 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "gir_ffi_test_helper"
|
4
4
|
|
5
5
|
GirFFI.setup :Regress
|
6
6
|
|
7
7
|
# Tests deriving Ruby classes from GObject classes.
|
8
|
-
describe
|
9
|
-
describe
|
8
|
+
describe "For derived classes" do
|
9
|
+
describe "setting up methods when first called" do
|
10
10
|
before do
|
11
11
|
save_module :GIMarshallingTests
|
12
12
|
GirFFI.setup :GIMarshallingTests
|
13
13
|
end
|
14
14
|
|
15
|
-
describe
|
15
|
+
describe "when an interface is mixed in" do
|
16
16
|
before do
|
17
17
|
@klass = Class.new GIMarshallingTests::OverridesObject
|
18
18
|
@klass.send :include, GIMarshallingTests::Interface
|
19
19
|
end
|
20
20
|
|
21
|
-
it
|
21
|
+
it "finds class methods in the superclass" do
|
22
22
|
@klass.returnv
|
23
23
|
end
|
24
24
|
|
25
|
-
it
|
25
|
+
it "finds instance methods in the superclass" do
|
26
26
|
obj = @klass.new
|
27
27
|
result = obj.method
|
28
|
-
result.must_equal 42
|
28
|
+
_(result).must_equal 42
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
@@ -34,8 +34,8 @@ describe 'For derived classes' do
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
describe
|
38
|
-
it
|
37
|
+
describe "the initializer" do
|
38
|
+
it "works if it calls super" do
|
39
39
|
klass = Class.new Regress::TestSubObj do
|
40
40
|
attr_reader :animal
|
41
41
|
def initialize(animal)
|
@@ -44,10 +44,10 @@ describe 'For derived classes' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
obj = klass.new
|
48
|
-
obj.must_be_instance_of klass
|
49
|
-
obj.to_ptr.wont_be_nil
|
50
|
-
obj.animal.must_equal
|
47
|
+
obj = klass.new "dog"
|
48
|
+
_(obj).must_be_instance_of klass
|
49
|
+
_(obj.to_ptr).wont_be_nil
|
50
|
+
_(obj.animal).must_equal "dog"
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|
@@ -1,452 +1,452 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "gir_ffi_test_helper"
|
4
4
|
|
5
5
|
GirFFI.setup :Everything
|
6
6
|
|
7
7
|
describe Everything do
|
8
|
-
it
|
9
|
-
Everything.const_return_GType.must_equal GObject::TYPE_OBJECT
|
8
|
+
it "has a working function #const_return_GType" do
|
9
|
+
_(Everything.const_return_GType).must_equal GObject::TYPE_OBJECT
|
10
10
|
end
|
11
11
|
|
12
|
-
it
|
13
|
-
Everything.const_return_filename.must_equal
|
12
|
+
it "has a working function #const_return_filename" do
|
13
|
+
_(Everything.const_return_filename).must_equal ""
|
14
14
|
end
|
15
15
|
|
16
|
-
it
|
17
|
-
Everything.const_return_gboolean.must_equal false
|
16
|
+
it "has a working function #const_return_gboolean" do
|
17
|
+
_(Everything.const_return_gboolean).must_equal false
|
18
18
|
end
|
19
19
|
|
20
|
-
it
|
21
|
-
Everything.const_return_gchar.must_equal 0
|
20
|
+
it "has a working function #const_return_gchar" do
|
21
|
+
_(Everything.const_return_gchar).must_equal 0
|
22
22
|
end
|
23
23
|
|
24
|
-
it
|
25
|
-
Everything.const_return_gdouble.must_equal 0
|
24
|
+
it "has a working function #const_return_gdouble" do
|
25
|
+
_(Everything.const_return_gdouble).must_equal 0
|
26
26
|
end
|
27
27
|
|
28
|
-
it
|
29
|
-
Everything.const_return_gfloat.must_equal 0
|
28
|
+
it "has a working function #const_return_gfloat" do
|
29
|
+
_(Everything.const_return_gfloat).must_equal 0
|
30
30
|
end
|
31
31
|
|
32
|
-
it
|
33
|
-
Everything.const_return_gint.must_equal 0
|
32
|
+
it "has a working function #const_return_gint" do
|
33
|
+
_(Everything.const_return_gint).must_equal 0
|
34
34
|
end
|
35
35
|
|
36
|
-
it
|
37
|
-
Everything.const_return_gint16.must_equal 0
|
36
|
+
it "has a working function #const_return_gint16" do
|
37
|
+
_(Everything.const_return_gint16).must_equal 0
|
38
38
|
end
|
39
39
|
|
40
|
-
it
|
41
|
-
Everything.const_return_gint32.must_equal 0
|
40
|
+
it "has a working function #const_return_gint32" do
|
41
|
+
_(Everything.const_return_gint32).must_equal 0
|
42
42
|
end
|
43
43
|
|
44
|
-
it
|
45
|
-
Everything.const_return_gint64.must_equal 0
|
44
|
+
it "has a working function #const_return_gint64" do
|
45
|
+
_(Everything.const_return_gint64).must_equal 0
|
46
46
|
end
|
47
47
|
|
48
|
-
it
|
49
|
-
Everything.const_return_gint8.must_equal 0
|
48
|
+
it "has a working function #const_return_gint8" do
|
49
|
+
_(Everything.const_return_gint8).must_equal 0
|
50
50
|
end
|
51
51
|
|
52
|
-
it
|
53
|
-
Everything.const_return_gintptr.must_equal 0
|
52
|
+
it "has a working function #const_return_gintptr" do
|
53
|
+
_(Everything.const_return_gintptr).must_equal 0
|
54
54
|
end
|
55
55
|
|
56
|
-
it
|
57
|
-
Everything.const_return_glong.must_equal 0
|
56
|
+
it "has a working function #const_return_glong" do
|
57
|
+
_(Everything.const_return_glong).must_equal 0
|
58
58
|
end
|
59
59
|
|
60
|
-
it
|
61
|
-
|
62
|
-
Everything.const_return_gpointer.must_be :null?
|
60
|
+
it "has a working function #const_return_gpointer" do
|
61
|
+
skip_below "1.47.1"
|
62
|
+
_(Everything.const_return_gpointer).must_be :null?
|
63
63
|
end
|
64
64
|
|
65
|
-
it
|
66
|
-
Everything.const_return_gshort.must_equal 0
|
65
|
+
it "has a working function #const_return_gshort" do
|
66
|
+
_(Everything.const_return_gshort).must_equal 0
|
67
67
|
end
|
68
68
|
|
69
|
-
it
|
70
|
-
Everything.const_return_gsize.must_equal 0
|
69
|
+
it "has a working function #const_return_gsize" do
|
70
|
+
_(Everything.const_return_gsize).must_equal 0
|
71
71
|
end
|
72
72
|
|
73
|
-
it
|
74
|
-
Everything.const_return_gssize.must_equal 0
|
73
|
+
it "has a working function #const_return_gssize" do
|
74
|
+
_(Everything.const_return_gssize).must_equal 0
|
75
75
|
end
|
76
76
|
|
77
|
-
it
|
78
|
-
Everything.const_return_guint.must_equal 0
|
77
|
+
it "has a working function #const_return_guint" do
|
78
|
+
_(Everything.const_return_guint).must_equal 0
|
79
79
|
end
|
80
80
|
|
81
|
-
it
|
82
|
-
Everything.const_return_guint16.must_equal 0
|
81
|
+
it "has a working function #const_return_guint16" do
|
82
|
+
_(Everything.const_return_guint16).must_equal 0
|
83
83
|
end
|
84
84
|
|
85
|
-
it
|
86
|
-
Everything.const_return_guint32.must_equal 0
|
85
|
+
it "has a working function #const_return_guint32" do
|
86
|
+
_(Everything.const_return_guint32).must_equal 0
|
87
87
|
end
|
88
88
|
|
89
|
-
it
|
90
|
-
Everything.const_return_guint64.must_equal 0
|
89
|
+
it "has a working function #const_return_guint64" do
|
90
|
+
_(Everything.const_return_guint64).must_equal 0
|
91
91
|
end
|
92
92
|
|
93
|
-
it
|
94
|
-
Everything.const_return_guint8.must_equal 0
|
93
|
+
it "has a working function #const_return_guint8" do
|
94
|
+
_(Everything.const_return_guint8).must_equal 0
|
95
95
|
end
|
96
96
|
|
97
|
-
it
|
98
|
-
Everything.const_return_guintptr.must_equal 0
|
97
|
+
it "has a working function #const_return_guintptr" do
|
98
|
+
_(Everything.const_return_guintptr).must_equal 0
|
99
99
|
end
|
100
100
|
|
101
|
-
it
|
102
|
-
Everything.const_return_gulong.must_equal 0
|
101
|
+
it "has a working function #const_return_gulong" do
|
102
|
+
_(Everything.const_return_gulong).must_equal 0
|
103
103
|
end
|
104
104
|
|
105
|
-
it
|
106
|
-
Everything.const_return_gunichar.must_equal 0
|
105
|
+
it "has a working function #const_return_gunichar" do
|
106
|
+
_(Everything.const_return_gunichar).must_equal 0
|
107
107
|
end
|
108
108
|
|
109
|
-
it
|
110
|
-
Everything.const_return_gushort.must_equal 0
|
109
|
+
it "has a working function #const_return_gushort" do
|
110
|
+
_(Everything.const_return_gushort).must_equal 0
|
111
111
|
end
|
112
112
|
|
113
|
-
it
|
114
|
-
Everything.const_return_utf8.must_equal
|
113
|
+
it "has a working function #const_return_utf8" do
|
114
|
+
_(Everything.const_return_utf8).must_equal ""
|
115
115
|
end
|
116
116
|
|
117
|
-
it
|
118
|
-
Everything.nullfunc.must_be_nil
|
117
|
+
it "has a working function #nullfunc" do
|
118
|
+
_(Everything.nullfunc).must_be_nil
|
119
119
|
end
|
120
120
|
|
121
|
-
it
|
122
|
-
Everything.one_outparam_GType.must_equal 0
|
121
|
+
it "has a working function #one_outparam_GType" do
|
122
|
+
_(Everything.one_outparam_GType).must_equal 0
|
123
123
|
end
|
124
124
|
|
125
|
-
it
|
125
|
+
it "has a working function #one_outparam_filename" do
|
126
126
|
# NOTE: This function stores a null pointer in its output parameter.
|
127
|
-
Everything.one_outparam_filename.must_be_nil
|
127
|
+
_(Everything.one_outparam_filename).must_be_nil
|
128
128
|
end
|
129
129
|
|
130
|
-
it
|
131
|
-
Everything.one_outparam_gboolean.must_equal false
|
130
|
+
it "has a working function #one_outparam_gboolean" do
|
131
|
+
_(Everything.one_outparam_gboolean).must_equal false
|
132
132
|
end
|
133
133
|
|
134
|
-
it
|
135
|
-
skip
|
136
|
-
Everything.one_outparam_gchar.must_equal 0
|
134
|
+
it "has a working function #one_outparam_gchar" do
|
135
|
+
skip "GIR gives the incorrect type: utf8 instead of gchar"
|
136
|
+
_(Everything.one_outparam_gchar).must_equal 0
|
137
137
|
end
|
138
138
|
|
139
|
-
it
|
140
|
-
Everything.one_outparam_gdouble.must_equal 0
|
139
|
+
it "has a working function #one_outparam_gdouble" do
|
140
|
+
_(Everything.one_outparam_gdouble).must_equal 0
|
141
141
|
end
|
142
142
|
|
143
|
-
it
|
144
|
-
Everything.one_outparam_gfloat.must_equal 0
|
143
|
+
it "has a working function #one_outparam_gfloat" do
|
144
|
+
_(Everything.one_outparam_gfloat).must_equal 0
|
145
145
|
end
|
146
146
|
|
147
|
-
it
|
148
|
-
Everything.one_outparam_gint.must_equal 0
|
147
|
+
it "has a working function #one_outparam_gint" do
|
148
|
+
_(Everything.one_outparam_gint).must_equal 0
|
149
149
|
end
|
150
150
|
|
151
|
-
it
|
152
|
-
Everything.one_outparam_gint16.must_equal 0
|
151
|
+
it "has a working function #one_outparam_gint16" do
|
152
|
+
_(Everything.one_outparam_gint16).must_equal 0
|
153
153
|
end
|
154
154
|
|
155
|
-
it
|
156
|
-
Everything.one_outparam_gint32.must_equal 0
|
155
|
+
it "has a working function #one_outparam_gint32" do
|
156
|
+
_(Everything.one_outparam_gint32).must_equal 0
|
157
157
|
end
|
158
158
|
|
159
|
-
it
|
160
|
-
Everything.one_outparam_gint64.must_equal 0
|
159
|
+
it "has a working function #one_outparam_gint64" do
|
160
|
+
_(Everything.one_outparam_gint64).must_equal 0
|
161
161
|
end
|
162
162
|
|
163
|
-
it
|
164
|
-
Everything.one_outparam_gint8.must_equal 0
|
163
|
+
it "has a working function #one_outparam_gint8" do
|
164
|
+
_(Everything.one_outparam_gint8).must_equal 0
|
165
165
|
end
|
166
166
|
|
167
|
-
it
|
168
|
-
Everything.one_outparam_gintptr.must_equal 0
|
167
|
+
it "has a working function #one_outparam_gintptr" do
|
168
|
+
_(Everything.one_outparam_gintptr).must_equal 0
|
169
169
|
end
|
170
170
|
|
171
|
-
it
|
172
|
-
Everything.one_outparam_glong.must_equal 0
|
171
|
+
it "has a working function #one_outparam_glong" do
|
172
|
+
_(Everything.one_outparam_glong).must_equal 0
|
173
173
|
end
|
174
174
|
|
175
|
-
it
|
176
|
-
|
177
|
-
Everything.one_outparam_gpointer.must_be :null?
|
175
|
+
it "has a working function #one_outparam_gpointer" do
|
176
|
+
skip_below "1.47.1"
|
177
|
+
_(Everything.one_outparam_gpointer).must_be :null?
|
178
178
|
end
|
179
179
|
|
180
|
-
it
|
181
|
-
Everything.one_outparam_gshort.must_equal 0
|
180
|
+
it "has a working function #one_outparam_gshort" do
|
181
|
+
_(Everything.one_outparam_gshort).must_equal 0
|
182
182
|
end
|
183
183
|
|
184
|
-
it
|
185
|
-
Everything.one_outparam_gsize.must_equal 0
|
184
|
+
it "has a working function #one_outparam_gsize" do
|
185
|
+
_(Everything.one_outparam_gsize).must_equal 0
|
186
186
|
end
|
187
187
|
|
188
|
-
it
|
189
|
-
Everything.one_outparam_gssize.must_equal 0
|
188
|
+
it "has a working function #one_outparam_gssize" do
|
189
|
+
_(Everything.one_outparam_gssize).must_equal 0
|
190
190
|
end
|
191
191
|
|
192
|
-
it
|
193
|
-
Everything.one_outparam_guint.must_equal 0
|
192
|
+
it "has a working function #one_outparam_guint" do
|
193
|
+
_(Everything.one_outparam_guint).must_equal 0
|
194
194
|
end
|
195
195
|
|
196
|
-
it
|
197
|
-
Everything.one_outparam_guint16.must_equal 0
|
196
|
+
it "has a working function #one_outparam_guint16" do
|
197
|
+
_(Everything.one_outparam_guint16).must_equal 0
|
198
198
|
end
|
199
199
|
|
200
|
-
it
|
201
|
-
Everything.one_outparam_guint32.must_equal 0
|
200
|
+
it "has a working function #one_outparam_guint32" do
|
201
|
+
_(Everything.one_outparam_guint32).must_equal 0
|
202
202
|
end
|
203
203
|
|
204
|
-
it
|
205
|
-
Everything.one_outparam_guint64.must_equal 0
|
204
|
+
it "has a working function #one_outparam_guint64" do
|
205
|
+
_(Everything.one_outparam_guint64).must_equal 0
|
206
206
|
end
|
207
207
|
|
208
|
-
it
|
209
|
-
Everything.one_outparam_guint8.must_equal 0
|
208
|
+
it "has a working function #one_outparam_guint8" do
|
209
|
+
_(Everything.one_outparam_guint8).must_equal 0
|
210
210
|
end
|
211
211
|
|
212
|
-
it
|
213
|
-
Everything.one_outparam_guintptr.must_equal 0
|
212
|
+
it "has a working function #one_outparam_guintptr" do
|
213
|
+
_(Everything.one_outparam_guintptr).must_equal 0
|
214
214
|
end
|
215
215
|
|
216
|
-
it
|
217
|
-
Everything.one_outparam_gulong.must_equal 0
|
216
|
+
it "has a working function #one_outparam_gulong" do
|
217
|
+
_(Everything.one_outparam_gulong).must_equal 0
|
218
218
|
end
|
219
219
|
|
220
|
-
it
|
221
|
-
Everything.one_outparam_gunichar.must_equal 0
|
220
|
+
it "has a working function #one_outparam_gunichar" do
|
221
|
+
_(Everything.one_outparam_gunichar).must_equal 0
|
222
222
|
end
|
223
223
|
|
224
|
-
it
|
225
|
-
Everything.one_outparam_gushort.must_equal 0
|
224
|
+
it "has a working function #one_outparam_gushort" do
|
225
|
+
_(Everything.one_outparam_gushort).must_equal 0
|
226
226
|
end
|
227
227
|
|
228
|
-
it
|
228
|
+
it "has a working function #one_outparam_utf8" do
|
229
229
|
# NOTE: This function stores a null pointer in its output parameter.
|
230
|
-
Everything.one_outparam_utf8.must_be_nil
|
230
|
+
_(Everything.one_outparam_utf8).must_be_nil
|
231
231
|
end
|
232
232
|
|
233
|
-
it
|
234
|
-
Everything.oneparam_GType(0).must_be_nil
|
233
|
+
it "has a working function #oneparam_GType" do
|
234
|
+
_(Everything.oneparam_GType(0)).must_be_nil
|
235
235
|
end
|
236
236
|
|
237
|
-
it
|
238
|
-
Everything.oneparam_filename(
|
237
|
+
it "has a working function #oneparam_filename" do
|
238
|
+
_(Everything.oneparam_filename("")).must_be_nil
|
239
239
|
end
|
240
240
|
|
241
|
-
it
|
242
|
-
Everything.oneparam_gboolean(false).must_be_nil
|
241
|
+
it "has a working function #oneparam_gboolean" do
|
242
|
+
_(Everything.oneparam_gboolean(false)).must_be_nil
|
243
243
|
end
|
244
244
|
|
245
|
-
it
|
246
|
-
Everything.oneparam_gchar(0).must_be_nil
|
245
|
+
it "has a working function #oneparam_gchar" do
|
246
|
+
_(Everything.oneparam_gchar(0)).must_be_nil
|
247
247
|
end
|
248
248
|
|
249
|
-
it
|
250
|
-
Everything.oneparam_gdouble(0.0).must_be_nil
|
249
|
+
it "has a working function #oneparam_gdouble" do
|
250
|
+
_(Everything.oneparam_gdouble(0.0)).must_be_nil
|
251
251
|
end
|
252
252
|
|
253
|
-
it
|
254
|
-
Everything.oneparam_gfloat(0.0).must_be_nil
|
253
|
+
it "has a working function #oneparam_gfloat" do
|
254
|
+
_(Everything.oneparam_gfloat(0.0)).must_be_nil
|
255
255
|
end
|
256
256
|
|
257
|
-
it
|
258
|
-
Everything.oneparam_gint(0).must_be_nil
|
257
|
+
it "has a working function #oneparam_gint" do
|
258
|
+
_(Everything.oneparam_gint(0)).must_be_nil
|
259
259
|
end
|
260
260
|
|
261
|
-
it
|
262
|
-
Everything.oneparam_gint16(0).must_be_nil
|
261
|
+
it "has a working function #oneparam_gint16" do
|
262
|
+
_(Everything.oneparam_gint16(0)).must_be_nil
|
263
263
|
end
|
264
264
|
|
265
|
-
it
|
266
|
-
Everything.oneparam_gint32(0).must_be_nil
|
265
|
+
it "has a working function #oneparam_gint32" do
|
266
|
+
_(Everything.oneparam_gint32(0)).must_be_nil
|
267
267
|
end
|
268
268
|
|
269
|
-
it
|
270
|
-
Everything.oneparam_gint64(0).must_be_nil
|
269
|
+
it "has a working function #oneparam_gint64" do
|
270
|
+
_(Everything.oneparam_gint64(0)).must_be_nil
|
271
271
|
end
|
272
272
|
|
273
|
-
it
|
274
|
-
Everything.oneparam_gint8(0).must_be_nil
|
273
|
+
it "has a working function #oneparam_gint8" do
|
274
|
+
_(Everything.oneparam_gint8(0)).must_be_nil
|
275
275
|
end
|
276
276
|
|
277
|
-
it
|
278
|
-
Everything.oneparam_gintptr(0).must_be_nil
|
277
|
+
it "has a working function #oneparam_gintptr" do
|
278
|
+
_(Everything.oneparam_gintptr(0)).must_be_nil
|
279
279
|
end
|
280
280
|
|
281
|
-
it
|
282
|
-
Everything.oneparam_glong(0).must_be_nil
|
281
|
+
it "has a working function #oneparam_glong" do
|
282
|
+
_(Everything.oneparam_glong(0)).must_be_nil
|
283
283
|
end
|
284
284
|
|
285
|
-
it
|
286
|
-
|
287
|
-
Everything.oneparam_gpointer(FFI::MemoryPointer.new(:int)).must_be_nil
|
285
|
+
it "has a working function #oneparam_gpointer" do
|
286
|
+
skip_below "1.47.1"
|
287
|
+
_(Everything.oneparam_gpointer(FFI::MemoryPointer.new(:int))).must_be_nil
|
288
288
|
end
|
289
289
|
|
290
|
-
it
|
291
|
-
Everything.oneparam_gshort(0).must_be_nil
|
290
|
+
it "has a working function #oneparam_gshort" do
|
291
|
+
_(Everything.oneparam_gshort(0)).must_be_nil
|
292
292
|
end
|
293
293
|
|
294
|
-
it
|
295
|
-
Everything.oneparam_gsize(0).must_be_nil
|
294
|
+
it "has a working function #oneparam_gsize" do
|
295
|
+
_(Everything.oneparam_gsize(0)).must_be_nil
|
296
296
|
end
|
297
297
|
|
298
|
-
it
|
299
|
-
Everything.oneparam_gssize(0).must_be_nil
|
298
|
+
it "has a working function #oneparam_gssize" do
|
299
|
+
_(Everything.oneparam_gssize(0)).must_be_nil
|
300
300
|
end
|
301
301
|
|
302
|
-
it
|
303
|
-
Everything.oneparam_guint(0).must_be_nil
|
302
|
+
it "has a working function #oneparam_guint" do
|
303
|
+
_(Everything.oneparam_guint(0)).must_be_nil
|
304
304
|
end
|
305
305
|
|
306
|
-
it
|
307
|
-
Everything.oneparam_guint16(0).must_be_nil
|
306
|
+
it "has a working function #oneparam_guint16" do
|
307
|
+
_(Everything.oneparam_guint16(0)).must_be_nil
|
308
308
|
end
|
309
309
|
|
310
|
-
it
|
311
|
-
Everything.oneparam_guint32(0).must_be_nil
|
310
|
+
it "has a working function #oneparam_guint32" do
|
311
|
+
_(Everything.oneparam_guint32(0)).must_be_nil
|
312
312
|
end
|
313
313
|
|
314
|
-
it
|
315
|
-
Everything.oneparam_guint64(0).must_be_nil
|
314
|
+
it "has a working function #oneparam_guint64" do
|
315
|
+
_(Everything.oneparam_guint64(0)).must_be_nil
|
316
316
|
end
|
317
317
|
|
318
|
-
it
|
319
|
-
Everything.oneparam_guint8(0).must_be_nil
|
318
|
+
it "has a working function #oneparam_guint8" do
|
319
|
+
_(Everything.oneparam_guint8(0)).must_be_nil
|
320
320
|
end
|
321
321
|
|
322
|
-
it
|
323
|
-
Everything.oneparam_guintptr(0).must_be_nil
|
322
|
+
it "has a working function #oneparam_guintptr" do
|
323
|
+
_(Everything.oneparam_guintptr(0)).must_be_nil
|
324
324
|
end
|
325
325
|
|
326
|
-
it
|
327
|
-
Everything.oneparam_gulong(0).must_be_nil
|
326
|
+
it "has a working function #oneparam_gulong" do
|
327
|
+
_(Everything.oneparam_gulong(0)).must_be_nil
|
328
328
|
end
|
329
329
|
|
330
|
-
it
|
331
|
-
Everything.oneparam_gunichar(0).must_be_nil
|
330
|
+
it "has a working function #oneparam_gunichar" do
|
331
|
+
_(Everything.oneparam_gunichar(0)).must_be_nil
|
332
332
|
end
|
333
333
|
|
334
|
-
it
|
335
|
-
Everything.oneparam_gushort(0).must_be_nil
|
334
|
+
it "has a working function #oneparam_gushort" do
|
335
|
+
_(Everything.oneparam_gushort(0)).must_be_nil
|
336
336
|
end
|
337
337
|
|
338
|
-
it
|
339
|
-
Everything.oneparam_utf8(
|
338
|
+
it "has a working function #oneparam_utf8" do
|
339
|
+
_(Everything.oneparam_utf8("")).must_be_nil
|
340
340
|
end
|
341
341
|
|
342
|
-
it
|
343
|
-
Everything.passthrough_one_GType(GObject::TYPE_OBJECT).must_equal GObject::TYPE_OBJECT
|
342
|
+
it "has a working function #passthrough_one_GType" do
|
343
|
+
_(Everything.passthrough_one_GType(GObject::TYPE_OBJECT)).must_equal GObject::TYPE_OBJECT
|
344
344
|
end
|
345
345
|
|
346
|
-
it
|
347
|
-
Everything.passthrough_one_filename(
|
346
|
+
it "has a working function #passthrough_one_filename" do
|
347
|
+
_(Everything.passthrough_one_filename("foo")).must_equal "foo"
|
348
348
|
end
|
349
349
|
|
350
|
-
it
|
351
|
-
Everything.passthrough_one_gboolean(true).must_equal true
|
350
|
+
it "has a working function #passthrough_one_gboolean" do
|
351
|
+
_(Everything.passthrough_one_gboolean(true)).must_equal true
|
352
352
|
end
|
353
353
|
|
354
|
-
it
|
355
|
-
Everything.passthrough_one_gchar(42).must_equal 42
|
354
|
+
it "has a working function #passthrough_one_gchar" do
|
355
|
+
_(Everything.passthrough_one_gchar(42)).must_equal 42
|
356
356
|
end
|
357
357
|
|
358
|
-
it
|
359
|
-
Everything.passthrough_one_gdouble(23.42).must_equal 23.42
|
358
|
+
it "has a working function #passthrough_one_gdouble" do
|
359
|
+
_(Everything.passthrough_one_gdouble(23.42)).must_equal 23.42
|
360
360
|
end
|
361
361
|
|
362
|
-
it
|
363
|
-
Everything.passthrough_one_gfloat(23.42).must_be_close_to 23.42
|
362
|
+
it "has a working function #passthrough_one_gfloat" do
|
363
|
+
_(Everything.passthrough_one_gfloat(23.42)).must_be_close_to 23.42
|
364
364
|
end
|
365
365
|
|
366
|
-
it
|
367
|
-
Everything.passthrough_one_gint(42).must_equal 42
|
366
|
+
it "has a working function #passthrough_one_gint" do
|
367
|
+
_(Everything.passthrough_one_gint(42)).must_equal 42
|
368
368
|
end
|
369
369
|
|
370
|
-
it
|
371
|
-
Everything.passthrough_one_gint16(42).must_equal 42
|
370
|
+
it "has a working function #passthrough_one_gint16" do
|
371
|
+
_(Everything.passthrough_one_gint16(42)).must_equal 42
|
372
372
|
end
|
373
373
|
|
374
|
-
it
|
375
|
-
Everything.passthrough_one_gint32(42).must_equal 42
|
374
|
+
it "has a working function #passthrough_one_gint32" do
|
375
|
+
_(Everything.passthrough_one_gint32(42)).must_equal 42
|
376
376
|
end
|
377
377
|
|
378
|
-
it
|
379
|
-
Everything.passthrough_one_gint64(42).must_equal 42
|
378
|
+
it "has a working function #passthrough_one_gint64" do
|
379
|
+
_(Everything.passthrough_one_gint64(42)).must_equal 42
|
380
380
|
end
|
381
381
|
|
382
|
-
it
|
383
|
-
Everything.passthrough_one_gint8(42).must_equal 42
|
382
|
+
it "has a working function #passthrough_one_gint8" do
|
383
|
+
_(Everything.passthrough_one_gint8(42)).must_equal 42
|
384
384
|
end
|
385
385
|
|
386
|
-
it
|
387
|
-
Everything.passthrough_one_gintptr(42).must_equal 42
|
386
|
+
it "has a working function #passthrough_one_gintptr" do
|
387
|
+
_(Everything.passthrough_one_gintptr(42)).must_equal 42
|
388
388
|
end
|
389
389
|
|
390
|
-
it
|
391
|
-
Everything.passthrough_one_glong(42).must_equal 42
|
390
|
+
it "has a working function #passthrough_one_glong" do
|
391
|
+
_(Everything.passthrough_one_glong(42)).must_equal 42
|
392
392
|
end
|
393
393
|
|
394
|
-
it
|
395
|
-
|
394
|
+
it "has a working function #passthrough_one_gpointer" do
|
395
|
+
skip_below "1.47.1"
|
396
396
|
ptr = FFI::MemoryPointer.new(:int)
|
397
397
|
result = Everything.passthrough_one_gpointer(ptr)
|
398
|
-
result.must_be :==, ptr
|
398
|
+
_(result).must_be :==, ptr
|
399
399
|
end
|
400
400
|
|
401
|
-
it
|
402
|
-
Everything.passthrough_one_gshort(42).must_equal 42
|
401
|
+
it "has a working function #passthrough_one_gshort" do
|
402
|
+
_(Everything.passthrough_one_gshort(42)).must_equal 42
|
403
403
|
end
|
404
404
|
|
405
|
-
it
|
406
|
-
Everything.passthrough_one_gsize(42).must_equal 42
|
405
|
+
it "has a working function #passthrough_one_gsize" do
|
406
|
+
_(Everything.passthrough_one_gsize(42)).must_equal 42
|
407
407
|
end
|
408
408
|
|
409
|
-
it
|
410
|
-
Everything.passthrough_one_gssize(42).must_equal 42
|
409
|
+
it "has a working function #passthrough_one_gssize" do
|
410
|
+
_(Everything.passthrough_one_gssize(42)).must_equal 42
|
411
411
|
end
|
412
412
|
|
413
|
-
it
|
414
|
-
Everything.passthrough_one_guint(42).must_equal 42
|
413
|
+
it "has a working function #passthrough_one_guint" do
|
414
|
+
_(Everything.passthrough_one_guint(42)).must_equal 42
|
415
415
|
end
|
416
416
|
|
417
|
-
it
|
418
|
-
Everything.passthrough_one_guint16(42).must_equal 42
|
417
|
+
it "has a working function #passthrough_one_guint16" do
|
418
|
+
_(Everything.passthrough_one_guint16(42)).must_equal 42
|
419
419
|
end
|
420
420
|
|
421
|
-
it
|
422
|
-
Everything.passthrough_one_guint32(42).must_equal 42
|
421
|
+
it "has a working function #passthrough_one_guint32" do
|
422
|
+
_(Everything.passthrough_one_guint32(42)).must_equal 42
|
423
423
|
end
|
424
424
|
|
425
|
-
it
|
426
|
-
Everything.passthrough_one_guint64(42).must_equal 42
|
425
|
+
it "has a working function #passthrough_one_guint64" do
|
426
|
+
_(Everything.passthrough_one_guint64(42)).must_equal 42
|
427
427
|
end
|
428
428
|
|
429
|
-
it
|
430
|
-
Everything.passthrough_one_guint8(42).must_equal 42
|
429
|
+
it "has a working function #passthrough_one_guint8" do
|
430
|
+
_(Everything.passthrough_one_guint8(42)).must_equal 42
|
431
431
|
end
|
432
432
|
|
433
|
-
it
|
434
|
-
Everything.passthrough_one_guintptr(42).must_equal 42
|
433
|
+
it "has a working function #passthrough_one_guintptr" do
|
434
|
+
_(Everything.passthrough_one_guintptr(42)).must_equal 42
|
435
435
|
end
|
436
436
|
|
437
|
-
it
|
438
|
-
Everything.passthrough_one_gulong(42).must_equal 42
|
437
|
+
it "has a working function #passthrough_one_gulong" do
|
438
|
+
_(Everything.passthrough_one_gulong(42)).must_equal 42
|
439
439
|
end
|
440
440
|
|
441
|
-
it
|
442
|
-
Everything.passthrough_one_gunichar(42).must_equal 42
|
441
|
+
it "has a working function #passthrough_one_gunichar" do
|
442
|
+
_(Everything.passthrough_one_gunichar(42)).must_equal 42
|
443
443
|
end
|
444
444
|
|
445
|
-
it
|
446
|
-
Everything.passthrough_one_gushort(42).must_equal 42
|
445
|
+
it "has a working function #passthrough_one_gushort" do
|
446
|
+
_(Everything.passthrough_one_gushort(42)).must_equal 42
|
447
447
|
end
|
448
448
|
|
449
|
-
it
|
450
|
-
Everything.passthrough_one_utf8(
|
449
|
+
it "has a working function #passthrough_one_utf8" do
|
450
|
+
_(Everything.passthrough_one_utf8("42")).must_equal "42"
|
451
451
|
end
|
452
452
|
end
|