Skip to content

Commit

Permalink
Remove obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Jun 2, 2024
1 parent caa191d commit 84b9f25
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions checker/checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -758,27 +758,6 @@ func TestCheck_TaggedFieldName(t *testing.T) {
assert.NoError(t, err)
}

// Let's do the same thing Go does and allow ambiguous identifiers - return first one found.
//func TestCheck_Ambiguous(t *testing.T) {
// type A struct {
// Ambiguous bool
// }
// type B struct {
// Ambiguous int
// }
// type Env struct {
// A
// B
// }
//
// tree, err := parser.Parse(`Ambiguous == 1`)
// require.NoError(t, err)
//
// _, err = checker.Check(tree, conf.New(Env{}))
// assert.Error(t, err)
// assert.Contains(t, err.Error(), "ambiguous identifier Ambiguous")
//}

func TestCheck_NoConfig(t *testing.T) {
tree, err := parser.Parse(`any`)
require.NoError(t, err)
Expand Down

0 comments on commit 84b9f25

Please sign in to comment.