Skip to content

Commit

Permalink
tests: refactoring for DRY principle
Browse files Browse the repository at this point in the history
  • Loading branch information
Mersho committed Feb 12, 2024
1 parent 2726f8b commit e57d4f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/FSharpLint.Benchmarks/Benchmark.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ open FSharp.Compiler.CodeAnalysis
open FSharp.Compiler.Text
open FSharpLint.Application.Lint
open FSharpLint.Framework
open FSharpLint.Framework.Utilities

type Benchmark () =

Expand All @@ -23,8 +24,6 @@ type Benchmark () =

parseResults.ParseTree

let (</>) basePath relativePath = Path.Combine(basePath, relativePath)

let basePath = ".." </> ".." </> ".." </> ".." </> ".." </> ".." </> ".." </> ".."
let sourceFile = basePath </> "TypeChecker.fs"

Expand Down
3 changes: 1 addition & 2 deletions tests/FSharpLint.FunctionalTest/TestApi.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ module TestApi =
open FSharpLint.Application.Lint
open FSharp.Compiler.CodeAnalysis
open FSharp.Compiler.Text

let (</>) basePath relativePath = Path.Combine(basePath, relativePath)
open FSharpLint.Framework.Utilities

let basePath = TestContext.CurrentContext.TestDirectory </> ".." </> ".." </> ".." </> ".." </> ".."

Expand Down

0 comments on commit e57d4f9

Please sign in to comment.