convert tests to exercise openapi and inference

This commit is contained in:
Khris Richardson
2020-03-03 16:54:47 -08:00
parent caa8fdc3cd
commit fcfe798b75
4 changed files with 727 additions and 337 deletions

View File

@@ -20,7 +20,7 @@ func TestMerge(t *testing.T) {
for j := range testCases[i] {
tc := testCases[i][j]
t.Run(tc.description, func(t *testing.T) {
actual, err := MergeStrings(tc.source, tc.dest, !tc.noInfer)
actual, err := MergeStrings(tc.source, tc.dest, tc.infer)
if !assert.NoError(t, err, tc.description) {
t.FailNow()
}
@@ -47,5 +47,5 @@ type testCase struct {
source string
dest string
expected string
noInfer bool
infer bool
}