diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 11:19:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:07:37 +0000 |
commit | b485aab7e71c1625cfc27e0f92c9509f42378458 (patch) | |
tree | ae9abe108601079d1679194de237c9a435ae5b55 /web/server/h2o/libh2o/misc/mruby-mtest/example/sample.rb | |
parent | Adding upstream version 1.44.3. (diff) | |
download | netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.tar.xz netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.zip |
Adding upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/server/h2o/libh2o/misc/mruby-mtest/example/sample.rb')
-rw-r--r-- | web/server/h2o/libh2o/misc/mruby-mtest/example/sample.rb | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/web/server/h2o/libh2o/misc/mruby-mtest/example/sample.rb b/web/server/h2o/libh2o/misc/mruby-mtest/example/sample.rb deleted file mode 100644 index 67c4e4448..000000000 --- a/web/server/h2o/libh2o/misc/mruby-mtest/example/sample.rb +++ /dev/null @@ -1,46 +0,0 @@ -class Test4MTest < MTest::Unit::TestCase - def test_assert - assert(true) - assert(true, 'true sample test') - end - - def test_assert_block - assert_block('msg') do - 'something-block' - end - end - - def test_assert_empty - assert_empty('', 'string empty') - assert_empty([], 'array empty') - assert_empty({}, 'hash empty') - end - - def test_assert_equal - assert_equal('', nil.to_s) - end - - def test_assert_in_delta - assert_in_delta(0, 0.1, 0.5) - end - - def test_assert_includes - assert_include([1,2,3], 1) - end - - def test_assert_instance_of - assert_instance_of Array, [] - assert_instance_of Class, Array - end - - def test_assert_kind_of - assert_kind_of Array, [] - assert_kind_of Class, Array - end - - def test_assert_match - assert_match 'abc', 'abc' - end -end - -MTest::Unit.new.run |