mirror of
https://github.com/maaslalani/slides.git
synced 2026-01-08 22:07:59 -05:00
Remove some language tests to remove build dependencies on NixOS
This commit is contained in:
@@ -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: `
|
||||
@@ -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!"`,
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user