Skip to content

Commit

Permalink
Updating basic get test, testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lovestaco committed Aug 15, 2023
1 parent ccba626 commit e1fab89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion elfparser/ElfTestSuite/y_0000_basic_get.l2
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
GET
https://google.com
http://httpbin.org/get
7 changes: 5 additions & 2 deletions tests/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ func TestCmdBasic(t *testing.T) {
o := *lama2cmd.GetAndValidateCmd(ipArgs)

expected := lama2cmd.Opts{
Verbose: []bool{true}, Nocolor: false, Positional: struct {
Verbose: []bool{true},
Nocolor: false,
Env: "UNSET",
Positional: struct {
LamaAPIFile string
}{LamaAPIFile: "../elfparser/ElfTestSuite/y_0000_basic_get.l2"},
}

if !reflect.DeepEqual(o, expected) {
t.Errorf("Unsuccessful parsing basic CLI options")
t.Errorf("Unsuccessful parsing basic CLI options.\nExpected:\n%v\nGot:\n%v", expected, o)
}
}

0 comments on commit e1fab89

Please sign in to comment.