codestyle: use camel case

This commit is contained in:
Vsevolod Brekelov 2019-10-18 18:36:54 +03:00
parent 59e3bd2fa9
commit 3560ada669
5 changed files with 5 additions and 5 deletions

View file

@ -131,5 +131,5 @@ var assignTestCases = []testCase{
} }
func TestAssignments(t *testing.T) { func TestAssignments(t *testing.T) {
run_testcases(t, assignTestCases) runTestCases(t, assignTestCases)
} }

View file

@ -189,5 +189,5 @@ var binaryExprTestCases = []testCase{
} }
func TestBinaryExprs(t *testing.T) { func TestBinaryExprs(t *testing.T) {
run_testcases(t, binaryExprTestCases) runTestCases(t, binaryExprTestCases)
} }

View file

@ -21,5 +21,5 @@ var numericTestCases = []testCase{
} }
func TestNumericExprs(t *testing.T) { func TestNumericExprs(t *testing.T) {
run_testcases(t, numericTestCases) runTestCases(t, numericTestCases)
} }

View file

@ -240,5 +240,5 @@ var structTestCases = []testCase{
} }
func TestStructs(t *testing.T) { func TestStructs(t *testing.T) {
run_testcases(t, structTestCases) runTestCases(t, structTestCases)
} }

View file

@ -16,7 +16,7 @@ type testCase struct {
result interface{} result interface{}
} }
func run_testcases(t *testing.T, tcases []testCase) { func runTestCases(t *testing.T, tcases []testCase) {
for _, tcase := range tcases { for _, tcase := range tcases {
t.Run(tcase.name, func(t *testing.T) { eval(t, tcase.src, tcase.result) }) t.Run(tcase.name, func(t *testing.T) { eval(t, tcase.src, tcase.result) })
} }