summaryrefslogtreecommitdiff
path: root/test/rdoc/test_rdoc_markup_verbatim.rb
blob: 6fdf8fde28ddc9722a560db79cfa1546e5ca890c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# frozen_string_literal: false
require 'rdoc/test_case'

class TestRDocMarkupVerbatim < RDoc::TestCase

  def test_equals2
    v1 = verb('1 + 1')
    v2 = verb('1 + 1')
    v3 = verb('1 + 2')
    v4 = verb('1 + 1')
    v4.format = :ruby

    assert_equal v1, v2

    refute_equal v1, v3
    refute_equal v1, v4
  end

  def test_ruby_eh
    verbatim = RDoc::Markup::Verbatim.new

    refute verbatim.ruby?

    verbatim.format = :ruby

    assert verbatim.ruby?
  end

end

>2022-07-13GVL Instrumentation: remove the EXITED count assertionJean Boussier 2022-06-23Fix warnings by old gccNobuyoshi Nakada 2022-06-23Non-void functions must return valueNobuyoshi Nakada 2022-06-17GVL Instrumentation API: add STARTED and EXITED eventsJean Boussier 2022-06-15Remove unused rb_thread_create_mjit_threadTakashi Kokubun 2022-06-03[Feature #18339] GVL Instrumentation APIJean Boussier 2022-05-24remove `DEBUG_OUT()` macroKoichi Sasada 2022-05-24use `RUBY_DEBUG_LOG` instead of `thread_debug`Koichi Sasada 2022-04-23introduce struct `rb_native_thread`Koichi Sasada 2022-04-22rename thread internal namingKoichi Sasada 2022-01-19thread.c: put platform specific part in each impl fileYuta Saito 2021-10-04Function `w32_error` does not returnxtkoba 2021-07-01Replace copy coroutine with pthread implementation.Samuel Williams 2021-06-01Make `Thread#native_thread_id` not-implemented if unsupportedNobuyoshi Nakada 2021-05-26Add Thread#native_thread_id [Feature #17853]NARUSE, Yui 2021-05-04Fix compilation error in thread_win32.cPeter Zhu 2021-05-04Suppress maybe-uninitialized warning by mingw gcc 11Nobuyoshi Nakada 2020-11-18fix public interfaceKoichi Sasada 2020-11-11introduce USE_VM_CLOCK for windows.Koichi Sasada 2020-09-28thread_win32.c: native_mutex_trylock is not used right nowNobuyoshi Nakada 2020-09-03Introduce Ractor mechanism for parallel executionKoichi Sasada 2019-06-19Remove IA64 support.Samuel Williams 2019-06-19Specify that size is non-committed memory.Samuel Williams 2019-06-19Use default stack size for worker thread (no th pointer available).Samuel Williams 2019-06-19Use stack size defaults for win32 threads.Samuel Williams 2019-01-04thread.c (call_without_gvl): spawn thread for UBF iff single-threadednormal 2018-10-20add disabling MJIT features option.ko1 2018-10-19rb_sigwait_sleep: change internal API to use rb_hrtime_tnormal 2018-08-25thread.c: use rb_hrtime_t scalar for high-resolution time operationsnormal 2018-08-20thread_pthread.c: reinitialize ubf_list at forknormal 2018-08-16thread.c (consume_communication_pipe): disarm UBF_TIMER before consumenormal 2018-08-13thread_pthread.c: eliminate timer thread by restructuring GVLnormal 2018-08-06thread_pthread.c: restore timer-thread for now :<normal 2018-08-02thread_win32.c: suppress warnings by -Wsuggest-attributek0kubun 2018-07-30thread*.c: waiting on sigwait_fd performs periodic ubf wakeupsnormal 2018-07-29thread_pthread: remove timer-thread by restructuring GVLnormal 2018-07-08mjit: get rid of memory leak in pause+resume loopnormal 2018-05-16thread: reduce GET_THREAD callsnormal 2018-04-22thread*: all condvars are monotonicnormal