Skip to content

Commit

Permalink
[tests] fix analyzer test (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lycs-D authored Apr 11, 2024
1 parent 9ba1aa8 commit 7828291
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/tests/bench.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn bench() testing.BenchmarkRunner {
}

b.bench('inlay hints', fn (mut b testing.Benchmark, mut fixture testing.Fixture) ! {
fixture.configure_by_file('benchmarks/checker.v')!
fixture.configure_by_file('benchmarks/inlay_hints.vv')!

b.start()

Expand All @@ -20,7 +20,7 @@ fn bench() testing.BenchmarkRunner {
})

b.bench('semantic tokens', fn (mut b testing.Benchmark, mut fixture testing.Fixture) ! {
fixture.configure_by_file('benchmarks/checker.v')!
fixture.configure_by_file('benchmarks/checker.vv')!

b.start()

Expand Down
4 changes: 2 additions & 2 deletions src/tests/documentation.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import testing
fn documentation() testing.Tester {
mut t := testing.with_name('documentation')

t.documentation_test('rendered', 'documentation/rendered.v')
t.documentation_test('stubs', 'documentation/stubs.v')
t.documentation_test('rendered', 'documentation/rendered.vv')
t.documentation_test('stubs', 'documentation/stubs.vv')

return t
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
40 changes: 20 additions & 20 deletions src/tests/types.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ import testing
fn types() testing.Tester {
mut t := testing.with_name('types')

t.type_test('literals', 'types/literals.v')
t.type_test('parameters types', 'types/parameters.v')
t.type_test('call expressions', 'types/call_expression.v')
t.type_test('type initializer', 'types/type_initializer.v')
t.type_test('for loops', 'types/for_loops.v')
t.type_test('slice and index expression', 'types/slice_and_index_expression.v')
t.type_test('function literal', 'types/function_literal.v')
t.type_test('pointers', 'types/pointers.v')
t.type_test('bool operators', 'types/bool_operators.v')
t.type_test('unsafe expression', 'types/unsafe_expression.v')
t.type_test('if expression', 'types/if_expression.v')
t.type_test('match expression', 'types/match_expression.v')
t.type_test('map init expression', 'types/map_init_expression.v')
t.type_test('chan type', 'types/chan_type.v')
t.type_test('struct fields', 'types/fields.v')
t.type_test('receiver', 'types/receiver.v')
t.type_test('json decode', 'types/json_decode.v')
t.type_test('generics', 'types/generics.v')
t.type_test('constants', 'types/constants.v')
t.type_test('for loop', 'types/for_loop.v')
t.type_test('literals', 'types/literals.vv')
t.type_test('parameters types', 'types/parameters.vv')
t.type_test('call expressions', 'types/call_expression.vv')
t.type_test('type initializer', 'types/type_initializer.vv')
t.type_test('for loops', 'types/for_loops.vv')
t.type_test('slice and index expression', 'types/slice_and_index_expression.vv')
t.type_test('function literal', 'types/function_literal.vv')
t.type_test('pointers', 'types/pointers.vv')
t.type_test('bool operators', 'types/bool_operators.vv')
t.type_test('unsafe expression', 'types/unsafe_expression.vv')
t.type_test('if expression', 'types/if_expression.vv')
t.type_test('match expression', 'types/match_expression.vv')
t.type_test('map init expression', 'types/map_init_expression.vv')
t.type_test('chan type', 'types/chan_type.vv')
t.type_test('struct fields', 'types/fields.vv')
t.type_test('receiver', 'types/receiver.vv')
t.type_test('json decode', 'types/json_decode.vv')
t.type_test('generics', 'types/generics.vv')
t.type_test('constants', 'types/constants.vv')
t.type_test('for loop', 'types/for_loop.vv')

return t
}

0 comments on commit 7828291

Please sign in to comment.