Skip to content

Commit

Permalink
fix: tests I had the argument order inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
MangelMaxime committed Nov 26, 2024
1 parent d80f99b commit cb0b36b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Integration/Compiler/CompilerHelpersTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ let tests =
testList "Compiler Helpers" [
testCase "expectedVersionMatchesActual works for same major version" <| fun _ ->
Fable.CompilerExt.expectedVersionMatchesActual "5.0.0" "5.0.0" |> equal true
Fable.CompilerExt.expectedVersionMatchesActual "5.0.1" "5.0.0" |> equal true
Fable.CompilerExt.expectedVersionMatchesActual "5.1.0" "5.0.0" |> equal true
Fable.CompilerExt.expectedVersionMatchesActual "5.0.0" "5.0.1" |> equal true
Fable.CompilerExt.expectedVersionMatchesActual "5.1.0" "5.1.0" |> equal true

testCase "expectedVersionMatchesActual works if actual version is higher than expected version" <| fun _ ->
Fable.CompilerExt.expectedVersionMatchesActual "4.0.0" "5.0.0" |> equal true
Fable.CompilerExt.expectedVersionMatchesActual "4.0.1" "5.0.0" |> equal true
Fable.CompilerExt.expectedVersionMatchesActual "4.1.0" "5.0.0" |> equal true
Fable.CompilerExt.expectedVersionMatchesActual "4.0.0" "5.0.1" |> equal true
Fable.CompilerExt.expectedVersionMatchesActual "4.0.0" "5.1.0" |> equal true

testCase "expectedVersionMatchesActual reject if actual version is lower than expected version" <| fun _ ->
Fable.CompilerExt.expectedVersionMatchesActual "4.0.0" "3.0.0" |> equal false
Expand Down

0 comments on commit cb0b36b

Please sign in to comment.