Skip to content
Snippets Groups Projects
Commit 043900de authored by Ammar Ahmed's avatar Ammar Ahmed :speech_balloon:
Browse files

add invalid test case

parent 3b830165
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,7 @@ var testCases = []struct {
{"Go Extraction 4 - If Else", "```go\nif x > 10 {\nfmt.Println('Greater than 10')\n} else {\nfmt.Println('Less than or equal to 10')\n}\n```", "\nif x > 10 {\nfmt.Println('Greater than 10')\n} else {\nfmt.Println('Less than or equal to 10')\n}\n"},
{"Go Extraction 5 - Function with Parameters", "```go\nfunc add(a int, b int) int {\nreturn a + b\n}\n```", "\nfunc add(a int, b int) int {\nreturn a + b\n}\n"},
{"Go Extraction 6 - Nested Loops", "```go\nfor i := 0; i < 3; i++ {\nfor j := 0; j < 3; j++ {\nfmt.Printf('(%d, %d)', i, j)\n}\n}\n```", "\nfor i := 0; i < 3; i++ {\nfor j := 0; j < 3; j++ {\nfmt.Printf('(%d, %d)', i, j)\n}\n}\n"},
{"Go Extraction 7 - Invalid", "```go```", ""},
// Rust Test Cases
{"Rust Extraction 1 - Main", "```rust\nfn main() {}\n```", "\nfn main() {}\n"},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment