Skip to content

Commit

Permalink
Remove some language tests to remove build dependencies on NixOS
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Oct 23, 2021
1 parent 7f589d0 commit 4dd723d
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions internal/code/execute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,6 @@ func TestExecute(t *testing.T) {
block code.Block
expected code.Result
}{
{
block: code.Block{
Code: `fn main() { println!("Hello, world!"); }`,
Language: code.Rust,
},
expected: code.Result{
Out: "Hello, world!\n",
ExitCode: 0,
},
},
{
block: code.Block{
Code: `puts "Hello, world!"`,
Language: "ruby",
},
expected: code.Result{
Out: "Hello, world!\n",
ExitCode: 0,
},
},
{
block: code.Block{
Code: `
Expand All @@ -49,16 +29,6 @@ func main() {
ExitCode: 0,
},
},
{
block: code.Block{
Code: `print("Hello, python!")`,
Language: "python",
},
expected: code.Result{
Out: "Hello, python!\n",
ExitCode: 0,
},
},
{
block: code.Block{
Code: `echo "Hello, bash!"`,
Expand Down Expand Up @@ -92,9 +62,6 @@ func main() {
}

for _, tc := range tt {
if testing.Short() {
t.SkipNow()
}
r := code.Execute(tc.block)
if r.Out != tc.expected.Out {
t.Fatalf("invalid output for lang %s, got %s, want %s | %+v",
Expand Down

0 comments on commit 4dd723d

Please sign in to comment.