Home
last modified time | relevance | path

Searched refs:ArgumentError (Results 1 – 25 of 3178) sorted by relevance

12345678910>>...128

/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/kernel/
H A DInteger_spec.rb106 lambda { Integer("\0") }.should raise_error(ArgumentError)
110 lambda { Integer("\01") }.should raise_error(ArgumentError)
114 lambda { Integer("1\0") }.should raise_error(ArgumentError)
134 lambda { Integer("_1") }.should raise_error(ArgumentError)
139 lambda { Integer("1_") }.should raise_error(ArgumentError)
157 lambda { Integer("+ 1") }.should raise_error(ArgumentError)
161 lambda { Integer("++1") }.should raise_error(ArgumentError)
166 lambda { Integer("1+") }.should raise_error(ArgumentError)
175 lambda { Integer("--1") }.should raise_error(ArgumentError)
180 lambda { Integer("1-") }.should raise_error(ArgumentError)
[all …]
H A DFloat_spec.rb54 lambda { @object.send(:Float, "float") }.should raise_error(ArgumentError)
62 lambda { @object.send(:Float, "10D") }.should raise_error(ArgumentError)
66 lambda { @object.send(:Float, "D10") }.should raise_error(ArgumentError)
93 lambda { @object.send(:Float, "1+1") }.should raise_error(ArgumentError)
94 lambda { @object.send(:Float, "1-1") }.should raise_error(ArgumentError)
98 lambda { @object.send(:Float, "11+") }.should raise_error(ArgumentError)
99 lambda { @object.send(:Float, "11-") }.should raise_error(ArgumentError)
103 lambda { @object.send(:Float, "_1") }.should raise_error(ArgumentError)
111 lambda { @object.send(:Float, "10_") }.should raise_error(ArgumentError)
115 lambda { @object.send(:Float, "\0") }.should raise_error(ArgumentError)
[all …]
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/string/
H A Dmodulo_spec.rb48 lambda { ("%" % []) }.should raise_error(ArgumentError)
128 lambda { "%1" % [] }.should raise_error(ArgumentError)
129 lambda { "%+" % [] }.should raise_error(ArgumentError)
130 lambda { "%-" % [] }.should raise_error(ArgumentError)
131 lambda { "%#" % [] }.should raise_error(ArgumentError)
132 lambda { "%0" % [] }.should raise_error(ArgumentError)
133 lambda { "%*" % [] }.should raise_error(ArgumentError)
134 lambda { "%." % [] }.should raise_error(ArgumentError)
135 lambda { "%_" % [] }.should raise_error(ArgumentError)
623 block.should raise_error(ArgumentError)
[all …]
/dports/devel/cargo-c/cargo-c-0.9.6+cargo-0.58/cargo-crates/libnghttp2-sys-0.1.7+1.45.0/nghttp2/third-party/mruby/mrbgems/mruby-kernel-ext/test/
H A Dkernel.rb31 assert_raise(ArgumentError) { c.new.baz(-1) }
32 assert_raise(ArgumentError) { c.new.baz(-1, 1) }
33 assert_raise(ArgumentError) { c.new.baz(1, -1) }
60 assert_raise(ArgumentError) { Integer('a') }
61 assert_raise(ArgumentError) { Integer('4a5') }
63 assert_raise(ArgumentError) { Integer('68_') }
85 assert_raise(ArgumentError) { Float("1. 5") }
88 assert_raise(ArgumentError) { Float('a') }
89 assert_raise(ArgumentError) { Float('4a5') }
91 assert_raise(ArgumentError) { Float('68_') }
[all …]
/dports/devel/cargo-generate/cargo-generate-0.9.0/cargo-crates/libnghttp2-sys-0.1.6+1.43.0/nghttp2/third-party/mruby/mrbgems/mruby-kernel-ext/test/
H A Dkernel.rb31 assert_raise(ArgumentError) { c.new.baz(-1) }
32 assert_raise(ArgumentError) { c.new.baz(-1, 1) }
33 assert_raise(ArgumentError) { c.new.baz(1, -1) }
60 assert_raise(ArgumentError) { Integer('a') }
61 assert_raise(ArgumentError) { Integer('4a5') }
63 assert_raise(ArgumentError) { Integer('68_') }
85 assert_raise(ArgumentError) { Float("1. 5") }
88 assert_raise(ArgumentError) { Float('a') }
89 assert_raise(ArgumentError) { Float('4a5') }
91 assert_raise(ArgumentError) { Float('68_') }
[all …]
/dports/www/libnghttp2/nghttp2-1.46.0/third-party/mruby/mrbgems/mruby-kernel-ext/test/
H A Dkernel.rb31 assert_raise(ArgumentError) { c.new.baz(-1) }
32 assert_raise(ArgumentError) { c.new.baz(-1, 1) }
33 assert_raise(ArgumentError) { c.new.baz(1, -1) }
60 assert_raise(ArgumentError) { Integer('a') }
61 assert_raise(ArgumentError) { Integer('4a5') }
63 assert_raise(ArgumentError) { Integer('68_') }
85 assert_raise(ArgumentError) { Float("1. 5") }
88 assert_raise(ArgumentError) { Float('a') }
89 assert_raise(ArgumentError) { Float('4a5') }
91 assert_raise(ArgumentError) { Float('68_') }
[all …]
/dports/www/nghttp2/nghttp2-1.46.0/third-party/mruby/mrbgems/mruby-kernel-ext/test/
H A Dkernel.rb31 assert_raise(ArgumentError) { c.new.baz(-1) }
32 assert_raise(ArgumentError) { c.new.baz(-1, 1) }
33 assert_raise(ArgumentError) { c.new.baz(1, -1) }
60 assert_raise(ArgumentError) { Integer('a') }
61 assert_raise(ArgumentError) { Integer('4a5') }
63 assert_raise(ArgumentError) { Integer('68_') }
85 assert_raise(ArgumentError) { Float("1. 5") }
88 assert_raise(ArgumentError) { Float('a') }
89 assert_raise(ArgumentError) { Float('4a5') }
91 assert_raise(ArgumentError) { Float('68_') }
[all …]
/dports/lang/ruby26/ruby-2.6.9/test/-ext-/
H A Dtest_scan_args.rb6 assert_raise(ArgumentError) {Bug::ScanArgs.lead()}
8 assert_raise(ArgumentError) {Bug::ScanArgs.lead("a", "b")}
14 assert_raise(ArgumentError) {Bug::ScanArgs.opt("a", "b")}
18 assert_raise(ArgumentError) {Bug::ScanArgs.lead_opt()}
30 assert_raise(ArgumentError) {Bug::ScanArgs.lead_var()}
40 assert_raise(ArgumentError) {Bug::ScanArgs.lead_opt_var()}
45 assert_raise(ArgumentError) {Bug::ScanArgs.opt_trail()}
52 assert_raise(ArgumentError) {Bug::ScanArgs.lead_opt_trail()}
60 assert_raise(ArgumentError) {Bug::ScanArgs.var_trail()}
87 assert_raise(ArgumentError) {Bug::ScanArgs.hash("a")}
[all …]
/dports/lang/ruby26/ruby-2.6.9/test/ruby/enc/
H A Dtest_case_options.rb7 assert_raise(ArgumentError) { arg.upcase(*options) }
8 assert_raise(ArgumentError) { arg.downcase(*options) }
9 assert_raise(ArgumentError) { arg.capitalize(*options) }
10 assert_raise(ArgumentError) { arg.swapcase(*options) }
14 assert_raise(ArgumentError) { arg.upcase!(*options) }
15 assert_raise(ArgumentError) { arg.downcase!(*options) }
69 assert_raise(ArgumentError) { 'a'.upcase :fold }
71 assert_raise(ArgumentError) { 'a'.swapcase :fold }
73 assert_raise(ArgumentError) { 'a'.upcase! :fold }
77 assert_raise(ArgumentError) { :a.upcase :fold }
[all …]
/dports/lang/ruby26/ruby-2.6.9/test/ruby/
H A Dtest_lambda.rb7 assert_raise(ArgumentError){(1..3).each(&lambda{})}
13 assert_raise(ArgumentError) { lambda{|a|}.call(1,2) }
14 assert_raise(ArgumentError) { lambda{|a|}.call() }
15 assert_raise(ArgumentError) { lambda{}.call(1) }
20 assert_raise(ArgumentError) { ->(a){ }.call(1,2) }
21 assert_raise(ArgumentError) { ->(a){ }.call() }
22 assert_raise(ArgumentError) { ->(){ }.call(1) }
34 assert_nothing_raised(ArgumentError, bug9605) {
105 assert_raise(ArgumentError, '[Bug #12705]') do
128 e = assert_raise(ArgumentError) do
[all …]
H A Dtest_sprintf.rb253 assert_raise(ArgumentError, "[ruby-core:11569]") {sprintf("%.5 5d", 5)}
259 assert_raise(ArgumentError, "[ruby-core:11569]") {sprintf("%5+0d", 1)}
260 assert_raise(ArgumentError, "[ruby-core:11569]") {sprintf("%5 0d", 1)}
274 assert_raise(ArgumentError) { sprintf("%\1", 1) }
275 assert_raise(ArgumentError) { sprintf("%!", 1) }
276 assert_raise(ArgumentError) { sprintf("%1$1$d", 1) }
277 assert_raise(ArgumentError) { sprintf("%0%") }
365 assert_raise(ArgumentError) { sprintf("%c", sprintf("%c%c", ?a, ?a)) }
421 assert_raise_with_message(ArgumentError, /width too big/) {
424 assert_raise_with_message(ArgumentError, /prec too big/) {
[all …]
H A Dtest_float.rb132 assert_raise(ArgumentError){Float("0.")}
133 assert_raise(ArgumentError){Float("+0.")}
134 assert_raise(ArgumentError){Float("-0.")}
135 assert_raise(ArgumentError){Float(".")}
136 assert_raise(ArgumentError){Float("+")}
137 assert_raise(ArgumentError){Float("+.")}
138 assert_raise(ArgumentError){Float("-")}
139 assert_raise(ArgumentError){Float("-.")}
140 assert_raise(ArgumentError){Float("1e")}
142 assert_raise(ArgumentError){Float("1.")}
[all …]
H A Dtest_integer.rb73 assert_raise(ArgumentError) {Integer("0x-1")}
79 assert_nothing_raised(ArgumentError) {
85 assert_raise(ArgumentError) { Integer("") }
88 assert_raise(ArgumentError) { Integer("1z") }
93 assert_raise(ArgumentError) { Integer("\0") }
157 assert_nothing_raised(ArgumentError) {
160 assert_nothing_raised(ArgumentError) {
163 assert_nothing_raised(ArgumentError) {
168 assert_nothing_raised(ArgumentError) {
173 assert_nothing_raised(ArgumentError) {
[all …]
H A Dtest_signal.rb81 assert_raise(ArgumentError) { SignalException.new }
82 assert_raise(ArgumentError) { SignalException.new(-1) }
105 assert_raise(ArgumentError) { Process.kill }
138 assert_raise(ArgumentError) { Signal.trap }
161 assert_raise(ArgumentError) { Signal.trap(-1, "xxxx") }
171 assert_raise(ArgumentError) { Signal.trap("EXIT\0") {} }
209 assert_raise(ArgumentError) {
212 assert_raise(ArgumentError) {
215 assert_raise(ArgumentError) {
218 assert_raise(ArgumentError) {
[all …]
/dports/lang/ruby26/ruby-2.6.9/test/
H A Dtest_time.rb34 rescue ArgumentError
55 assert_raise(ArgumentError) {
124 rescue ArgumentError
211 rescue ArgumentError
241 assert_raise(ArgumentError) { Time.parse("foo", now) }
262 assert_raise(ArgumentError) { Time.rfc2822("01-5-20") }
263 assert_raise(ArgumentError) { Time.rfc2822("7/21/00") }
264 assert_raise(ArgumentError) { Time.rfc2822("2001-8-28") }
265 assert_raise(ArgumentError) { Time.rfc2822("00-5-6 1:13:06") }
266 assert_raise(ArgumentError) { Time.rfc2822("2001-9-27 9:36:49") }
[all …]
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/regexp/
H A Dunion_spec.rb57 }.should raise_error(ArgumentError)
64 }.should raise_error(ArgumentError)
71 }.should raise_error(ArgumentError)
78 }.should raise_error(ArgumentError)
85 }.should raise_error(ArgumentError)
91 }.should raise_error(ArgumentError)
97 }.should raise_error(ArgumentError)
103 }.should raise_error(ArgumentError)
109 }.should raise_error(ArgumentError)
115 }.should raise_error(ArgumentError)
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/protobuf/ruby/tests/
H A Dtype_errors.rb23 check_error ArgumentError,
38 check_error ArgumentError,
53 check_error ArgumentError,
68 check_error ArgumentError,
107 check_error ArgumentError,
111 check_error ArgumentError,
115 check_error ArgumentError,
119 check_error ArgumentError,
134 check_error ArgumentError,
149 check_error ArgumentError,
[all …]
/dports/sysutils/py-azure-cli/azure-cli-2.29.2/azure/cli/command_modules/iot/
H A D_validators.py6 from argparse import ArgumentError
13 raise ArgumentError(None, 'the following arguments are required: --permissions')
23 raise ArgumentError(None, 'Please specify the retention time for device-to-cloud messages'
30 …raise ArgumentError(None, 'Please specify the number of retry from 1 to 100 only to deliver a mess…
36 …raise ArgumentError(None, 'Please specify the period of time from 1 to 48 hours for which a file u…
43 …raise ArgumentError(None, 'Please specify the period of time from 1 to 24 hours for which the SAS …
50 …raise ArgumentError(None, 'Please specify the period of time from 1 to 48 hours for which a messag…
69 …raise ArgumentError(None, 'Please specify the number of retry from 1 to 100 only to deliver a mess…
76 …raise ArgumentError(None, 'Please specify the maximum delivery count from 1 to 100 only for cloud-…
83 …raise ArgumentError(None, 'Please specify the default time from 1 to 48 hours to live for cloud-to…
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/array/
H A Dfill_spec.rb55 lambda { [].fill('a') }.should_not raise_error(ArgumentError)
57 lambda { [].fill('a', 1) }.should_not raise_error(ArgumentError)
59 lambda { [].fill('a', 1, 2) }.should_not raise_error(ArgumentError)
60 lambda { [].fill('a', 1, 2, true) }.should raise_error(ArgumentError)
64 lambda { [].fill }.should raise_error(ArgumentError)
68 lambda { [].fill() {|i|} }.should_not raise_error(ArgumentError)
70 lambda { [].fill(1) {|i|} }.should_not raise_error(ArgumentError)
72 lambda { [].fill(1, 2) {|i|} }.should_not raise_error(ArgumentError)
73 lambda { [].fill(1, 2, true) {|i|} }.should raise_error(ArgumentError)
174 lambda { [1, 2, 3, 4].fill('a', 3, -1)}.should_not raise_error(ArgumentError)
[all …]
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/proc/
H A Dcurry_spec.rb52 lambda { @lambda_add.curry[1,2,3,4] }.should raise_error(ArgumentError)
66 end.should raise_error(ArgumentError)
120 lambda { @lambda_add.curry(2) }.should raise_error(ArgumentError)
131 lambda { @lambda_add.curry(4) }.should raise_error(ArgumentError)
132 lambda { lambda { true }.curry(1) }.should raise_error(ArgumentError)
133 lambda { lambda {|a, b=nil|}.curry(5) }.should raise_error(ArgumentError)
134 lambda { lambda {|a, &b|}.curry(2) }.should raise_error(ArgumentError)
135 lambda { lambda {|a, b=nil, &c|}.curry(3) }.should raise_error(ArgumentError)
163 raise_error(ArgumentError)
165 raise_error(ArgumentError)
[all …]
/dports/sysutils/watchman/watchman-4.5.0/ruby/ruby-watchman/spec/
H A Druby_watchman_spec.rb86 to raise_error(ArgumentError, /undersized/i)
91 to raise_error(ArgumentError, /missing/i)
98 to raise_error(ArgumentError, /undersized/i)
105 to raise_error(ArgumentError, /empty/i)
112 to raise_error(ArgumentError, /bad integer/i)
145 to raise_error(ArgumentError, /unexpected end/i)
177 to raise_error(ArgumentError, /not a number/i)
183 to raise_error(ArgumentError, /unexpected end/i)
219 to raise_error(ArgumentError, /bad integer/i)
336 to raise_error(ArgumentError, /not a number/)
[all …]
/dports/sysutils/py-pywatchman/watchman-4.9.0/ruby/ruby-watchman/spec/
H A Druby_watchman_spec.rb86 to raise_error(ArgumentError, /undersized/i)
91 to raise_error(ArgumentError, /missing/i)
98 to raise_error(ArgumentError, /undersized/i)
105 to raise_error(ArgumentError, /empty/i)
112 to raise_error(ArgumentError, /bad integer/i)
145 to raise_error(ArgumentError, /unexpected end/i)
177 to raise_error(ArgumentError, /not a number/i)
183 to raise_error(ArgumentError, /unexpected end/i)
219 to raise_error(ArgumentError, /bad integer/i)
336 to raise_error(ArgumentError, /not a number/)
[all …]
/dports/databases/hbase/hbase-1.2.1/hbase-shell/src/main/ruby/hbase/
H A Dquotas.rb49 raise(ArgumentError, "Arguments should be a Hash") unless args.kind_of?(Hash)
57 raise(ArgumentError, "Unexpected arguments: " + args.inspect) unless args.empty?
61 raise(ArgumentError, "Unexpected arguments: " + args.inspect) unless args.empty?
69 raise(ArgumentError, "Unexpected arguments: " + args.inspect) unless args.empty?
73 raise(ArgumentError, "Unexpected arguments: " + args.inspect) unless args.empty?
82 raise(ArgumentError, "Arguments should be a Hash") unless args.kind_of?(Hash)
99 raise(ArgumentError, "Unexpected arguments: " + args.inspect) unless args.empty?
103 raise(ArgumentError, "Unexpected arguments: " + args.inspect) unless args.empty?
112 raise(ArgumentError, "Arguments should be a Hash") unless args.kind_of?(Hash)
125 raise(ArgumentError, "Arguments should be a Hash") unless args.kind_of?(Hash)
[all …]
H A Dvisibility_labels.rb44 raise(ArgumentError, "Arguments cannot be null")
50 raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
60 raise(ArgumentError, labelsWithException)
75 raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
85 raise(ArgumentError, labelsWithException)
95 raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
106 raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
122 raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
132 raise(ArgumentError, labelsWithException)
146 raise(ArgumentError, "DISABLED: Visibility labels feature is not available") unless \
[all …]
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/library/date/shared/
H A Dcommercial.rb28 lambda { Date.send(@method, 2004, 53, 1) }.should_not raise_error(ArgumentError)
29 lambda { Date.send(@method, 2004, 53, 0) }.should raise_error(ArgumentError)
30 lambda { Date.send(@method, 2004, 53, 8) }.should raise_error(ArgumentError)
31 lambda { Date.send(@method, 2004, 54, 1) }.should raise_error(ArgumentError)
32 lambda { Date.send(@method, 2004, 0, 1) }.should raise_error(ArgumentError)
34 lambda { Date.send(@method, 2003, 52, 1) }.should_not raise_error(ArgumentError)
35 lambda { Date.send(@method, 2003, 53, 1) }.should raise_error(ArgumentError)
36 lambda { Date.send(@method, 2003, 52, 0) }.should raise_error(ArgumentError)
37 lambda { Date.send(@method, 2003, 52, 8) }.should raise_error(ArgumentError)

12345678910>>...128