forked from TrueCloudLab/neoneo-go
codestyle: use camel case
This commit is contained in:
parent
59e3bd2fa9
commit
3560ada669
5 changed files with 5 additions and 5 deletions
|
@ -131,5 +131,5 @@ var assignTestCases = []testCase{
|
|||
}
|
||||
|
||||
func TestAssignments(t *testing.T) {
|
||||
run_testcases(t, assignTestCases)
|
||||
runTestCases(t, assignTestCases)
|
||||
}
|
||||
|
|
|
@ -189,5 +189,5 @@ var binaryExprTestCases = []testCase{
|
|||
}
|
||||
|
||||
func TestBinaryExprs(t *testing.T) {
|
||||
run_testcases(t, binaryExprTestCases)
|
||||
runTestCases(t, binaryExprTestCases)
|
||||
}
|
||||
|
|
|
@ -21,5 +21,5 @@ var numericTestCases = []testCase{
|
|||
}
|
||||
|
||||
func TestNumericExprs(t *testing.T) {
|
||||
run_testcases(t, numericTestCases)
|
||||
runTestCases(t, numericTestCases)
|
||||
}
|
||||
|
|
|
@ -240,5 +240,5 @@ var structTestCases = []testCase{
|
|||
}
|
||||
|
||||
func TestStructs(t *testing.T) {
|
||||
run_testcases(t, structTestCases)
|
||||
runTestCases(t, structTestCases)
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ type testCase struct {
|
|||
result interface{}
|
||||
}
|
||||
|
||||
func run_testcases(t *testing.T, tcases []testCase) {
|
||||
func runTestCases(t *testing.T, tcases []testCase) {
|
||||
for _, tcase := range tcases {
|
||||
t.Run(tcase.name, func(t *testing.T) { eval(t, tcase.src, tcase.result) })
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue