Browse Source

Added example code to the script file in BFLib.

Renamed the script file in BFLibCore. Both script files are now in sync.
master
Craig Oates 6 years ago
parent
commit
bcbe6cb804
  1. 2
      BFLib/BFLib.fsproj
  2. 17
      BFLib/ExampleScript.fsx
  3. 8
      BFLib/Script.fsx
  4. 2
      BFLibCore/BFLibCore.fsproj
  5. 0
      BFLibCore/ExampleScript.fsx

2
BFLib/BFLib.fsproj

@ -53,7 +53,7 @@
<ItemGroup>
<Compile Include="AssemblyInfo.fs" />
<Compile Include="FunkyFish.fs" />
<None Include="Script.fsx" />
<None Include="ExampleScript.fsx" />
<Content Include="packages.config" />
</ItemGroup>
<ItemGroup>

17
BFLib/ExampleScript.fsx

@ -0,0 +1,17 @@
// Use this script file to test out the BFLibCore functions in F# Interactive (no need to compile).
#load "FunkyFish.fs"
open FunkyFish
let exampleOne = LibraryTest1 2 4
printfn "The result for LibraryTest1 is %i" exampleOne
let exampleTwo = LibraryTest2 3 20 2
printfn "The result for LibraryTest2 is %i" exampleTwo
let exampleThree = LibraryTest3 "George"
printfn "The result for LibraryTest3 is %s" exampleThree
// Feel free to add more functions and test them out here.
// Once they are working as intended you can move them over to ConsoleCommands in BrittleFish.

8
BFLib/Script.fsx

@ -1,8 +0,0 @@
// Learn more about F# at http://fsharp.org
// See the 'F# Tutorial' project for more help.
#load "FunkyFish.fs"
open FunkyFish
// Feel free to add your own code in here...

2
BFLibCore/BFLibCore.fsproj

@ -5,7 +5,7 @@
</PropertyGroup>
<ItemGroup>
<None Include="ExampleScripts.fsx" />
<None Include="ExampleScript.fsx" />
<Compile Include="FunkyFishCore.fs" />
</ItemGroup>

0
BFLibCore/ExampleScripts.fsx → BFLibCore/ExampleScript.fsx

Loading…
Cancel
Save