summaryrefslogtreecommitdiffstats
path: root/src/web/server/h2o/libh2o/deps/mruby/test/t/bs_literal.rb
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 12:08:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 12:08:18 +0000
commit5da14042f70711ea5cf66e034699730335462f66 (patch)
tree0f6354ccac934ed87a2d555f45be4c831cf92f4a /src/web/server/h2o/libh2o/deps/mruby/test/t/bs_literal.rb
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-5da14042f70711ea5cf66e034699730335462f66.tar.xz
netdata-5da14042f70711ea5cf66e034699730335462f66.zip
Merging upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/web/server/h2o/libh2o/deps/mruby/test/t/bs_literal.rb')
-rw-r--r--src/web/server/h2o/libh2o/deps/mruby/test/t/bs_literal.rb38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/web/server/h2o/libh2o/deps/mruby/test/t/bs_literal.rb b/src/web/server/h2o/libh2o/deps/mruby/test/t/bs_literal.rb
new file mode 100644
index 000000000..c6c38140b
--- /dev/null
+++ b/src/web/server/h2o/libh2o/deps/mruby/test/t/bs_literal.rb
@@ -0,0 +1,38 @@
+##
+# Bootstrap test for literals
+
+assert('BS Literal 1') do
+ assert_true true
+end
+
+assert('BS Literal 2') do
+ assert_equal TrueClass, true.class
+end
+
+assert('BS Literal 3') do
+ assert_false false
+end
+
+assert('BS Literal 4') do
+ assert_equal FalseClass, false.class
+end
+
+assert('BS Literal 5') do
+ assert_equal 'nil', nil.inspect
+end
+
+assert('BS Literal 6') do
+ assert_equal NilClass, nil.class
+end
+
+assert('BS Literal 7') do
+ assert_equal Symbol, :sym.class
+end
+
+assert('BS Literal 8') do
+ assert_equal 1234, 1234
+end
+
+assert('BS Literal 9') do
+ assert_equal Fixnum, 1234.class
+end