diff --git a/js/tests/defaultKernels.test.ts b/js/tests/defaultKernels.test.ts index 5750644a..6c9bbb3a 100644 --- a/js/tests/defaultKernels.test.ts +++ b/js/tests/defaultKernels.test.ts @@ -23,3 +23,10 @@ sandboxTest('test ts kernel errors', async ({ sandbox }) => { }) expect(output.error?.name).toEqual('TypeScriptCompilerError') }) + +sandboxTest('test ruby kernel', async ({ sandbox }) => { + const output = await sandbox.runCode('puts "Hello World!"', { + language: 'ruby', + }) + expect(output.logs.stdout).toEqual(['Hello World!\n']) +}) diff --git a/python/tests/async/test_async_default_kernels.py b/python/tests/async/test_async_default_kernels.py index 83f92746..27b28cef 100644 --- a/python/tests/async/test_async_default_kernels.py +++ b/python/tests/async/test_async_default_kernels.py @@ -21,3 +21,8 @@ async def test_ts_kernel_errors(async_sandbox: AsyncSandbox): ) assert execution.error is not None assert execution.error.name == "TypeScriptCompilerError" + + +async def test_ruby_kernel(async_sandbox: AsyncSandbox): + execution = await async_sandbox.run_code("puts 'Hello, World!'", language="ruby") + assert execution.logs.stdout == ["Hello, World!\n"] diff --git a/python/tests/sync/test_default_kernels.py b/python/tests/sync/test_default_kernels.py index 0695defd..78c6210d 100644 --- a/python/tests/sync/test_default_kernels.py +++ b/python/tests/sync/test_default_kernels.py @@ -30,3 +30,8 @@ def test_ts_kernel_errors(sandbox: Sandbox): execution = sandbox.run_code("import x from 'module';", language="ts") assert execution.error is not None assert execution.error.name == "TypeScriptCompilerError" + + +def test_ruby_kernel(sandbox: Sandbox): + execution = sandbox.run_code("puts 'Hello, World!'", language="ruby") + assert execution.logs.stdout == ["Hello, World!\n"]