• Home
  • Raw
  • Download

Lines Matching +full:d3 +full:- +full:force

32     m.optional_int32 = -42
33 assert m.optional_int32 == -42
34 m.optional_int64 = -0x1_0000_0000
35 assert m.optional_int64 == -0x1_0000_0000
50 m.optional_bytes = "world".encode!('ASCII-8BIT')
63 m = proto_module::TestMessage.new(:optional_int32 => -42,
67 assert m.optional_int32 == -42
116 :optional_int32 => -42,
120 …expected = "<#{proto_module}::TestMessage: optional_int32: -42, optional_msg: <#{proto_module}::Te…
124 m = proto_module::OneofMessage.new(:b => -42)
125 expected = "<#{proto_module}::OneofMessage: b: -42>"
137 # relying on the randomness here -- if hash function changes and we are
195 # ASCII-8BIT to a string field will convert to the proper encoding.
202 m.optional_bytes = "Test string UTF-8 \u0100".encode!('UTF-8')
214 m.optional_string = "asdf".encode!('UTF-8')
215 assert_raise(FrozenErrorType) { m.optional_string.encode!('ASCII-8BIT') }
370 assert l[-1] == nil
377 assert l[-1] == 4
378 assert l[-2] == nil
387 assert l[-1] == 2
388 assert l[-2] == 4
389 assert l[-3] == nil
462 m[-1] = 42
485 m[-1] = 1
494 m[-1] = 1
520 # Allowed -- we will automatically convert to ASCII-8BIT.
639 d3 = proto_module::OneofMessage.decode(
641 assert d3.a == ""
642 assert d3.b == 0
643 assert d3.c == nil
644 assert d3.d == :B
683 assert m.repeated_msg[-1] == tm1
685 assert m.repeated_msg[-1] == tm2
904 # just be sure that we can instantiate types with corecursive field-type
939 m.optional_int32 = -0x8000_0000
942 m.optional_int32 = -1.0
945 m.optional_int32 = -0x8000_0001
951 m.optional_int32 = +0x1000_0000_0000_0000_0000_0000 # force Bignum
965 m.optional_uint32 = -1
968 m.optional_uint32 = -1.5
971 m.optional_uint32 = -1.5e12
974 m.optional_uint32 = -0x1000_0000_0000_0000
980 m.optional_uint32 = +0x1000_0000_0000_0000_0000_0000 # force Bignum
990 m.optional_int64 = -0x8000_0000_0000_0000
993 m.optional_int64 = -1.0
995 m.optional_int64 = -8e18
997 m.optional_int64 = -0x8000_0000_0000_0001
1003 m.optional_int64 = +0x1000_0000_0000_0000_0000_0000 # force Bignum
1017 m.optional_uint64 = -1
1020 m.optional_uint64 = -1.5
1023 m.optional_uint64 = -1.5e12
1026 m.optional_uint64 = -0x1_0000_0000_0000_0000
1032 m.optional_uint64 = +0x1000_0000_0000_0000_0000_0000 # force Bignum
1094 :optional_int64 => -0x1_0000_0000,
1099 :optional_double => -1e100,
1266 run_asserts = ->(m) {
1298 run_asserts = ->(m) {
1371 run_asserts = ->(m) {
1419 run_test = ->(m) {
1458 run_test = ->(klass, val) {
1488 run_asserts = ->(m) {
1567 run_asserts = ->(m) {
1693 str = ("\"%04d-%02d-%02dT00:00:00.000+00:00\"" % [year, month, day])
1731 m = proto_module::TimeMessage.new(duration: -123.321)
1732 assert_equal Google::Protobuf::Duration.new(seconds: -123, nanos: -321_000_000), m.duration
1901 assert_equal "Oneof accessors are read-only.", error.message