Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions js/tests/defaultKernels.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
})
5 changes: 5 additions & 0 deletions python/tests/async/test_async_default_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
5 changes: 5 additions & 0 deletions python/tests/sync/test_default_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Loading