1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/ruby
Jeremy Evans cfd162d535 Make String#{strip,lstrip}{,!} strip leading NUL bytes
The documentation already specifies that they strip whitespace
and defines whitespace to include null.

This wraps the new behavior in the appropriate guards in the specs,
but does not specify behavior for previous versions, because this
is a bug that could be backported.

Fixes [Bug #17467]
2021-02-20 11:17:47 +09:00
..
enc
allpairs.rb
beginmainend.rb
bug-11928.rb
bug-13526.rb
lbtest.rb
marshaltestlib.rb
sentence.rb
test_alias.rb
test_argf.rb Forward keyword arguments to ARGF from global functions 2021-02-08 11:33:53 +09:00
test_arithmetic_sequence.rb test/ruby/test_arithmetic_sequence.rb: restore test_last_bug17218 2020-12-10 00:59:00 +09:00
test_arity.rb
test_array.rb Use category: :deprecated in warnings that are related to deprecation 2020-12-18 09:54:11 -08:00
test_assignment.rb
test_ast.rb Added AST assertions for method definition arguments [Bug #17495] 2021-01-01 14:48:46 +09:00
test_autoload.rb fix for multi-run test. 2020-05-15 14:54:03 +09:00
test_backtrace.rb Fix backtrace to not skip frames with iseq without pc 2021-02-19 08:14:24 -08:00
test_basicinstructions.rb
test_beginendblock.rb
test_bignum.rb Get rid of defining methods for tests in core classes 2021-01-09 22:38:06 +09:00
test_call.rb Dup splat array in certain cases where there is a block argument 2020-06-18 08:19:33 -07:00
test_case.rb
test_class.rb Skip freezing check on setting temporary class path [Bug #17563] 2021-01-20 19:24:16 +09:00
test_clone.rb
test_comparable.rb
test_complex.rb Fix assertion failed in Complex.polar without NDEBUG (#3551) 2020-09-16 19:27:16 +09:00
test_complex2.rb
test_complexrational.rb
test_condition.rb
test_const.rb
test_continuation.rb
test_default_gems.rb
test_defined.rb Warn the defined location as deprecation as well as the main message 2021-01-23 19:58:39 +09:00
test_dir.rb Remove "." and ".." from Dir.glob with FNM_DOTMATCH [Bug #17280] 2021-01-12 20:02:43 +09:00
test_dir_m17n.rb win32: Use UTF-8 as filesystem encoding [Feature #12654] 2020-12-20 18:34:04 +09:00
test_econv.rb Encode ' as ' when using encode(xml: :attr) 2020-07-10 09:34:08 -07:00
test_encoding.rb Fix a failure 2021-02-16 18:17:09 +09:00
test_enum.rb Add Enumerable#compact and Enumerator::Lazy#compact 2021-01-02 17:27:24 +09:00
test_enumerator.rb Add Enumerable#compact and Enumerator::Lazy#compact 2021-01-02 17:27:24 +09:00
test_env.rb test/ruby: Check warning messages at a finer granularity 2020-12-17 20:06:18 +09:00
test_eval.rb
test_exception.rb Remove the uninitialized instance variable verbose mode warning 2020-12-10 10:16:05 -08:00
test_fiber.rb Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
test_file.rb
test_file_exhaustive.rb Fixed codepage for utime [Bug #17626] 2021-02-14 19:44:41 +09:00
test_fixnum.rb test/ruby: Check warning messages at a finer granularity 2020-12-17 20:06:18 +09:00
test_flip.rb
test_float.rb numeric.c: optimize float ** 2 case by fastpath 2020-05-12 02:14:27 +09:00
test_fnmatch.rb
test_frozen_error.rb
test_gc.rb Guard callinfo 2021-01-13 16:13:53 -08:00
test_gc_compact.rb Disable auto compaction on platforms that can't support it 2020-11-25 11:29:14 -08:00
test_hash.rb Make any hash values fixable [Bug #17488] 2020-12-31 12:11:45 +09:00
test_ifunless.rb
test_inlinecache.rb
test_integer.rb Fix unsigned int overflow in error message for chr 2020-09-30 00:31:59 +09:00
test_integer_comb.rb
test_io.rb Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
test_io_m17n.rb Check encoding name to replicate 2020-10-15 16:48:25 +09:00
test_iseq.rb Raise when loading unprovided builtin function [Bug #17192] 2020-11-30 15:19:49 +09:00
test_iterator.rb Warn when passing a non-literal block to Kernel#lambda 2020-06-11 07:30:48 -07:00
test_jit.rb Avoid suppressing unrelated warnings 2021-01-18 20:44:48 -08:00
test_jit_debug.rb tune parallel test 2020-12-01 09:39:09 +09:00
test_key_error.rb
test_keyword.rb Fixed premature return 2021-01-19 17:59:37 +09:00
test_lambda.rb test/ruby/test_lambda.rb: prevent lambda(&proc_block) warnings 2020-12-12 23:11:47 +09:00
test_lazy_enumerator.rb Improved Enumerable::Lazy#flat_map 2020-07-23 16:57:26 +09:00
test_literal.rb RUBY_ISEQ_DUMP_DEBUG=to_binary never kept the debug information for String literals 2020-09-16 11:17:23 +02:00
test_m17n.rb Windows: Read ENV names and values as UTF-8 encoded Strings (#3818) 2020-12-08 02:00:39 +09:00
test_m17n_comb.rb Add test for String#casecmp? 2021-01-24 15:57:13 +09:00
test_marshal.rb Suppress constant redefinition warnings 2021-01-11 00:33:26 +09:00
test_math.rb
test_memory_view.rb [memory_view][fiddle] Rename len to byte_size in rb_memory_view_t 2020-12-23 09:24:53 +09:00
test_metaclass.rb
test_method.rb Remove unneeded code 2020-12-24 04:58:40 -05:00
test_method_cache.rb invalidate negative cache any time. 2021-02-19 16:54:31 +09:00
test_mixed_unicode_escapes.rb
test_module.rb Make a cyclic prepend not modify ancestors for the receiver 2021-02-11 07:45:52 -08:00
test_name_error.rb Test for [Feature #16832] 2020-05-26 15:09:07 +09:00
test_nomethod_error.rb Make test for no method error more reliable 2020-06-06 13:48:24 -04:00
test_not.rb
test_numeric.rb numeric.c, range.c: prohibit zero step 2020-10-23 15:26:51 +09:00
test_object.rb test/ruby: Check warning messages at a finer granularity 2020-12-17 20:06:18 +09:00
test_objectspace.rb Check argument to ObjectSpace._id2ref 2020-06-16 18:25:35 +09:00
test_optimization.rb Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
test_pack.rb
test_parse.rb Fixed error message when % at EOF 2021-01-04 12:11:37 +09:00
test_path.rb
test_pattern_matching.rb test/ruby/test_pattern_matching.rb: Avoid a warning 2021-01-19 13:34:07 +09:00
test_pipe.rb
test_primitive.rb
test_proc.rb test/ruby: Check warning messages at a finer granularity 2020-12-17 20:06:18 +09:00
test_process.rb Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
test_rand.rb Deprecate Random::DEFAULT 2020-12-14 20:29:50 +01:00
test_range.rb numeric.c, range.c: prohibit zero step 2020-10-23 15:26:51 +09:00
test_rational.rb Make reciprocal properly of non-integral rational [Bug #17572] 2021-01-23 10:30:59 +09:00
test_rational2.rb
test_readpartial.rb
test_refinement.rb reset cache before iterating 2020-12-22 06:09:30 +09:00
test_regexp.rb Capture to reserved name variables if already defined [Bug #17533] 2021-01-13 21:16:00 +09:00
test_require.rb $LOAD_PATH.resolve_feature_path should not raise 2021-02-16 18:11:13 +09:00
test_require_lib.rb
test_rubyoptions.rb Added Thread::Backtrace.limit [Feature #17479] 2021-02-15 18:29:35 +09:00
test_rubyvm.rb ruby_vm_global_method_state is no longer needed. 2020-10-14 23:15:21 +09:00
test_rubyvm_jit.rb Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
test_settracefunc.rb Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
test_signal.rb
test_sleep.rb
test_sprintf.rb
test_sprintf_comb.rb
test_stack.rb Pass ASAN options to child environments 2020-09-28 09:45:04 -07:00
test_string.rb Make String#{strip,lstrip}{,!} strip leading NUL bytes 2021-02-20 11:17:47 +09:00
test_stringchar.rb
test_struct.rb Use the dedicated assertion 2021-01-17 21:55:48 +09:00
test_super.rb This test is not testing attr_writer 2020-04-14 23:59:29 -07:00
test_symbol.rb Added Symbol#name 2020-09-04 22:18:59 +09:00
test_syntax.rb Reset paren_nest at tAREF and tASET [Bug #17431] 2020-12-24 01:39:52 +09:00
test_system.rb
test_thread.rb Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
test_thread_cv.rb
test_thread_queue.rb Thread::Queue.new should accept an Enumerable [Feature #17327] 2021-02-12 12:21:49 +09:00
test_threadgroup.rb
test_time.rb UTC zone should be still "+00:00" [Feature #17544] 2021-02-16 20:34:23 +09:00
test_time_tz.rb Parse "-00:00" as UTC for the round-trip [Feature #17544] 2021-02-16 20:34:23 +09:00
test_trace.rb
test_transcode.rb Add string encoding IBM720 alias CP720 (#3803) 2020-11-22 22:23:40 +09:00
test_undef.rb
test_unicode_escape.rb
test_variable.rb Raise RuntimeError for class variable overtaken in nonverbose mode 2020-06-18 08:21:29 -07:00
test_vm_dump.rb cause SEGV for the test. 2020-05-26 04:49:11 +09:00
test_weakmap.rb
test_whileuntil.rb
test_yield.rb
ut_eof.rb